OpenZoom: Difference between revisions
From charlesreid1
(Created page with "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 li...") |
No edit summary |
||
| Line 36: | Line 36: | ||
</pre> | </pre> | ||
This will generate two things: a file called | This will generate two things: a file called <code>helloworld.dzi</code> (a deep zoom image), and <code>helloworld_files</code> (the files used by the deep zoom image). You can then use this dzi file wherever you want. | ||
[[Category:Images]] | |||
[[Category:Python]] | |||
Latest revision as of 20:10, 21 September 2017
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.