From charlesreid1

Python OpenZoom library: DeepZoom

https://github.com/openzoom/deepzoom.py


Installation

To install deep zoom, first you need PIL. And to install PIL, first you need JPEG libraries.

JPEG Libraries

Following this Stack Overflow post, I was able to install jpeg headers by doing this:

wget http://www.ijg.org/files/jpegsrc.v7.tar.gz
cd jpeg-7
./configure && make && make install

PIL

Once I had done that, I installed the python image library by doing this:

pip install pillow

DeepZoom Example

You can run the deep zoom example by doing this:

cd deepzoom.py/examples/helloworld/
./helloworld.py

This will generate two things: a file called helloworld.dzi (a deep zoom image), and helloworld_files (the files used by the deep zoom image). You can then use this dzi file wherever you want.