This is a simple server that generates IIIF Presentation API V3 manifests for images hosted on an IIIF Image API V3 server. For more details on the IIIF Presentation API V3, please refer to the official documentation.
- Docker is installed
- Optionally, Python 3.9 or higher is installed
- An IIIF Image API V3 server is running. The current implementation has been tested with Cantaloupe.
docker build -t iiif-presentation-api-server .
# This assumes that an IIIF Image API V3 server is running on the host machine at port 8182
docker run -p 8002:8000 --env IIIF_IMAGE_API_SERVER_URL=http://host.docker.internal:8182/iiif/3 iiif-presentation-api-server
After starting the server, the API documentation will be available at http://localhost:8002/docs
.
This assumes that a file with name CATS_MM14_C_F1_XPL-big.tif
is available in the IIIF Image API server.
curl -X 'GET' \
'http://localhost:8002/api/v1/manifests/CATS_MM14_C_F1_XPL-big.tif/manifest.json' \
-H 'accept: application/json'
curl -X 'GET' \
'http://localhost:8002/api/v1/ok' \
-H 'accept: application/json'
python3 -m venv venv
source venv/bin/activate
pip install --upgrade pip
pip install -r requirements.txt
export PYTHONPATH=$PWD/app
python -m uvicorn app.main:app --reload --port 8002