Skip to content

Getting Started

IIPImage is a client/server system. The iipsrv server streams image tiles over HTTP and a viewer in your web page displays them. To get running you need three things: a server, an image in a tiled multi-resolution format, and a compatible viewer.

1. Install the server

The quickest option for evaluation is the official Docker image. The following command starts iipsrv running on port 8080 using images from the /home/images/ directory on your host machine:

docker run -it -p 8080:80 -v /home/images/:/images --rm iipsrv/iipsrv

For production use, install a compiled native package: Debian/Ubuntu (via the official IIPImage APT repository), Alpine Linux (apk add iipsrv), Fedora/RHEL via EPEL, FreeBSD or macOS — or build from source. See the server installation guide and the download page for current packages and binaries. Installing natively requires administration rights on the web server because iipsrv normally runs as a FastCGI service behind Apache, Nginx or Lighttpd.

2. Prepare an image

For best performance, source images should be tiled multi-resolution TIFF pyramids (or JPEG2000). The recommended tool is VIPS:

vips tiffsave input.tif output.tif --tile --pyramid --compression jpeg --tile-width 256 --tile-height 256

Use --compression webp or --compression deflate for WebP or lossless encoding. As of iipsrv 1.3, plain JPEG input images are also supported, but they are much slower to decode because they lack tiling and multiple resolutions — use them only for small or medium-sized images. See Images for the full encoding recipes and guidance on choosing a format.

3. Check that it works

Point a browser at the server to see the version page:

http://localhost/fcgi-bin/iipsrv.fcgi

Then request a resized JPEG directly (replace the path with one of your images — it must be an absolute path on the server, not a web root path):

http://localhost/fcgi-bin/iipsrv.fcgi?FIF=/home/images/example.tif&WID=400&CVT=jpeg

CVT must be the last parameter. The same image through the IIIF API:

http://localhost/fcgi-bin/iipsrv.fcgi?IIIF=example.tif/full/400,/0/default.jpg

If these fail, work through the troubleshooting checklist. Clean URLs such as /iiif/example.tif/... are possible via URI_MAP or web server rewriting — see Clean URLs.

4. Add a viewer

Any viewer that speaks IIIF, IIP, DeepZoom or Zoomify can be used. Popular IIIF clients include OpenSeadragon, Mirador and UniversalViewer; Leaflet and OpenLayers can also be used with IIIF tiles. For full access to the server’s native features, use IIPMooViewer. The viewers page lists the options and IIIF explains the API.

Next Steps

Copyright © 2026 Ruven Pillay. All Rights Reserved.