15: Getting Started: Image Servers

Image Servers

These servers support the IIIF Image API. Some may also have support for the Presentation API.

Getting started with Loris

In the repository of simple scripts created to go along with this workshop:

https://github.com/mattmcgrattan/oslo_demos

I provide a very simple shell script that wll use Docker to run Loris.

Deploying Loris using Docker

Loris provides a Docker version of the image server.

https://github.com/loris-imageserver/loris-docker

Installing Docker

Mac:

https://docs.docker.com/docker-for-mac/install/

Windows:

https://docs.docker.com/docker-for-windows/install/

Linux:

Running Loris

There is a shell script provided in this repository, if you run:

./loris_docker.sh

This script will download the correct Docker image and spin up a Loris image server, and serve images from the ./images folder.

You can test if this is working by loading:

http://localhost:8000/test.jp2/info.json

in your browser to check an info.json file is being returned.

Then try:

http://localhost:8000/test.jp2/full/250,/90/default.jpg

The documentation at:

https://github.com/loris-imageserver/loris-docker
provides more general information on spinning up the Dockerised version, although with one caveat, it may be necessary to change the volume mapping from:

docker run -d -v <your-img-folder>:/usr/local/share/images -p 5004:5004 <docker-image>

to

docker run -d -v <your-img-folder>:/opt/loris/tests/img -p 5004:5004 <docker-image>

if you are following that documentation.