Zoomable image downloader for Google Arts & Culture, Zoomify, IIIF, and others
Zoomable image downloader for Google Arts & Culture, Zoomify, IIIF, and others
dezoomify-rs is a tiled image downloader. Some webpages present high-resolution zoomable images without a way to download them. These images are often tiled: the original large image has been split into smaller individual image files called tiles. The only way to download such an image is to download all the tiles separately and then stitch them together. This process can be automated by a tiled image downloader.
The most common tiled image downloader is probably dezoomify, an online tool which is very easy to use.
The goal of this project is not to replace the traditional dezoomify. However, some images are so large that they can't be efficiently downloaded and displayed inside a web browser. Other times, a website tries to protect its tiles by refusing access to them when certain HTTP headers are not set to the right values. dezoomify-rs is a desktop application for Windows, MacOs and linux that does not have the same limitations as the online zoomify. dezoomify-rs also lets the user choose between several image formats, whereas in dezoomify, you can only save the image as PNG.
dezoomify-rs supports several zoomable image formats, each backed by a dedicated dezoomer. The following dezoomers are currently available:
https://github.com/user-attachments/assets/e7174665-004d-44b2-a9f5-ae5a838e1262
First of all, you have to download the application.
On some operating systems, you may have to authorize the application execution before being able to launch it. See how to do in MacOS.
As an alternative to installing the binary directly, on macOS and Linux dezoomify-rs is available via the Homebrew package manager. It can be installed with the command brew install dezoomify-rs.
Dezoomify-rs supports multiple output image formats.
The format to use is determined by the name of the output file.
For instance, entering dezoomify-rs http://example.com/ my_image.png on the command line
will create a PNG image.
Each image format encoder has a distinct set of features and limitations :
.iiif, a folder will be created instead of a single file,
with its structure following the IIIF specification.
A file called viewer.html will be created inside this folder,
which you can open in your browser to view the image.By default, dezoomify-rs works entirely in memory, which is very fast.
However, the latest versions added the possibility to use a "tile cache".
When you launch dezoomify-rs from the commandline with dezoomify-rs --tile-cache my_caching_folder http://myurl.com,
it will save all the image tiles it downloads to the specified folder.
If the download is interrupted before the end, you will be able to resume it later by specifying the same tile cache folder.
A tile cache also allows you to manually get the individual tiles if you want to stitch them manually.
In order to download images from google arts and culture, just open
dezoomify-rs, and when asked, enter the URL of a viewing page, such as
https://artsandculture.google.com/asset/light-in-the-dark/ZQFouDGMVmsI2w
You can give dezoomify-rs the URL of a Zoomify viewer page, the
ImageProperties.xml file, or one of the image tiles. Viewer-page discovery
supports standard Z.showImage viewers and OpenSeadragon
zoomifytileservice declarations.
You can use dezoomify-extension to
find the URL of this file.
Alternatively, you can find it out manually by opening your network inspector.
If the image tile URLs have the form
http://example.com/path/to/TileGroup1/1-2-3.jpg,
dezoomify-rs will derive and request
http://example.com/path/to/ImageProperties.xml automatically.
The IIIF dezoomer takes the URL of an
info.json file as input.
You can use dezoomify-extension to find the URL of this file.
Alternatively, you can find this url in your browser's network inspector when loading the image.
dezoomify-rs accepts IIIF Presentation API manifest URLs as bulk input. It extracts image entries from the manifest and builds output filenames from available manifest metadata (for example manifest title and canvas label).
The DeepZoom dezoomer takes the URL of a dzi file as input, which you can find using
dezoomify-extension.
You can find this url in your browser's network inspector when loading the image.
If the image tile URLs have the form
http://test.com/y/xy_files/1/2_3.jpg,
then the URL to enter is
http://test.com/y/xy.dzi.
Krpano is a zoomable image format often used for panoramas, virtual tours, photoshperes, and other 3d zoomable images. dezoomify-rs supports downloading individual image planes from such images. You need to provide the xml meta-information file for the image.
IIPImage is an image web server that implements
the Internet Imaging Protocol.
Such images are easily recognizable by their tile URLs, which contain FIF=.
You can pass an URL containing FIF= to dezoomify-rs to let it download the image.
The XLimage dezoomer accepts *.imgf and *.imgi metadata URLs
(such as image.imgf?cmd=info).
TopViewer supports Picturae Memorix metadata, thumbnail URLs, and media API responses.
FSI supports Neptune Labs FSI Server metadata URLs and viewer pages containing an FSI server URL.
LizardTech supports ImageServer calcrgn metadata and generates the
corresponding getimage tile requests.
VLS supports Visual Library Server zoom, pageview, and thumbview URLs.
Hungaricana support accepts ECW image metadata and follows the image metadata resources exposed by supported gallery pages.
WMTS support accepts a capabilities document URL and uses its linked Web Mercator tile matrix set, layer limits, and tile URL template.
ArcGIS support accepts cached MapServer URLs and follows the service's JSON
metadata to its cached tiles.
pnav support accepts entity URLs, discovers the image JSON metadata, and uses the service's crop requests to assemble the image.
You can use this dezoomer if you know the format of tile URLs. For instance, if you noticed that the URL of the first tile is
http://example.com/my_image/image-0-0.jpgand the second is
http://example.com/my_image/image-1-0.jpgthen you can guess what the general format will be, and give dezoomify-rs the following:
http://example.com/my_image/image-{{X}}-{{Y}}.jpgIf the numbers have leading zeroes in the URL
(such as image-01-00.jpg instead of image-1-0.jpg),
then you can specify them in the url template as follows:
http://example.com/my_image/image-{{X:02}}-{{Y:02}}.jpgThe custom yaml dezoomer
is a powerful tool that lets you download tiled images in many different formats, including formats that are not explicitly
supported by dezoomify-rs.
In order to use this dezoomer, you'll need to create a tiles.yaml file, which is a little bit technical.
However, we have a a tutorial for the custom YAML dezoomer
to help you.
If you are having troubles understanding the tutorial or adapting it to your use-case, you should get in touch by
opening a new github issue.
When using dezoomify-rs from the command-line
…Many sources contain multiple zoomable images rather than just one. Dezoomify-rs can handle these cases intelligently:
When multiple images are found, dezoomify-rs will show you a list with titles and descriptions:
Found 3 images:
[0] Front cover (2000x3000 pixels)
[1] f. 1r - Gospel of Matthew begins (4000x6000 pixels)
[No open issues yet, or sync has not completed.