Zoomable images are awesome.
The process is pretty dead simple.
To start you’ll need a few things, Homebrew and vips.
Homebrew is a package manager for Mac.
vips is a command line utility that generates tiled images from a tif file.
I installed Homebrew from the website.
Installed vips and it’s dependencies using terminal on a Mac with the following command.$ brew install vips –with-cfitsio –with-fftw –with-imagemagick –with-libexif –with-liboil –with-libtiff –with-little-cms –with-openexr –with-openslide –with-pango
And ran the following command to test tile creation.$ vips dzsave filename.tif mydz
One down but with over 600 additional tifs to process, I decided it was time to use bash to remove myself from the process and a script was born.
It recursively reads a directory structure looking for .tif files. Any tif is tiled and saved into a folder called mydz_files inside the tifs folder. Accompanying this is a small file, mydz.dzi. The xml in this file tells deepzoom the height and width of the image its rendering.
Here’s a link to one of the works of art, check out the zoom.
To view the zoom itself, use this link.
Take a look, use it, fix it, enhance it and/or drop me a comment.