Skip to main content

IIIF Image API reference implementation

Project description

Build status Test coverage

iiif - A Python library providing a reference implementation of the International Image Interoperability Framework: Image API 2.1 (and versions 2.0, 1.1, 1.0). Also includes a test server using the library to implement the Image API transformations dynamically, and a static file generator to pre-compute tiles necessary for OpenSeadragon which may then be stored a static files.

Installation

The library, test server, static file generator are all designed to work with Python 2.6, 2.7, 3.4, 3.5 and 3.6. Manual installation is necessary to get the demonstration documentation and examples.

Automatic installation from PyPI

The iiif library code and scripts are listed in PyPI and can be installed with pip or easy_install, e.g.:

easy_install iiif

The PyPI version does not include all demonstration documentation and examples.

Manual installation from github

First, clone the code and examples from the Github repository:

cd /tmp
git clone git://github.com/zimeon/iiif.git
cd iiif/

Second, install Pillow (a fork of PIL):

pip install 'Pillow<4.0.0'
  • Pillow is tied to <4.0.0 to remain compatible with python 2.6. This code may work with later versions but is not being tested with them

  • You may need sudo if installing system-wide as opposed to in a user-space environment

After installation of Pillow there will be be a summary of image formats supported. Addition libraries may be require to get all formats depending on your platform.

The scripts and demonstrations can then be run from the iiif directory.

Finally, you may install the library code and scripts locally in the appropriate places within your python setup using:

python setup.py build
python setup.py install
  • You may need sudo to if installing system-wide as opposed to in a user-space environment

The source code is maintained on Github

See also

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

iiif-1.0.4.tar.gz (543.4 kB view hashes)

Uploaded Source

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page