This endpoint is available at /iiif/2.
This endpoint can be enabled or disabled using the endpoint.iiif.2.enabled
configuration key.
Cantaloupe implements version 2.1.1 of this API, for compatibility with all 2.x clients. Compliance level is dynamically computed and declared on a per-processor basis. Most processors are "Level 2"-compliant.
sizes
endpoint.iiif.min_size
. (To restrict access to only these sizes, use the endpoint.iiif.2.restrict_to_sizes
configuration option.)tiles
width
and height
will be the smallest of the native tile dimensions, the value of the endpoint.iiif.min_tile_size
configuration key, or the full image dimensions.endpoint.iiif.min_tile_size
.profile.formats
profile.maxArea
max_pixels
in the configuration. If set to zero, it will be omitted.profile.qualities
profile.supports
attribution
, service
, etc.)Custom keys can be added to the information JSON response, such as to declare service profiles or, beginning in Image API 2.1, an optional rights statement and/or logo. The delegate script needs to implement the extra_iiif2_information_response_keys()
method. An example implementation follows:
This endpoint is available at /iiif/1.
This endpoint can be enabled or disabled using the endpoint.iiif.1.enabled
configuration key.
Cantaloupe implements version 1.1 of this API, for compatibility with all 1.x clients. Compliance level is dynamically computed and declared on a per-processor basis. Most processors are "Level 2"-compliant.
tile_width
and tile_height
endpoint.iiif.min_tile_size
configuration key, or the full image dimensions.endpoint.iiif.min_tile_size
.formats
qualities
profile
All endpoints support some additional features that may not be obvious:
The Content-Disposition
HTTP response header tells clients whether to attempt to display a response entity inline or download it, perhaps accompanied by a user prompt. The endpoint.iiif.content_disposition
configuration key can be used to set a value for this header in all responses. In addition, a response-content-disposition
query argument can be used to suggest a value to override that on a per-request basis. This is useful for "linking to a download."
For example, the following URL will cause the image identified by some-identifier
to be downloaded and saved as image.jpg:
http://my-image-server/iiif/2/some-identifier/full/full/0/default.jpg ?response-content-disposition=attachment%3B%20filename%3Dimage.jpg
Note that the value of the query argument must be URL-encoded. In this case, the decoded form looks like: attachment; filename=image.jpg
.
The caches can be bypassed on a per-request basis by supplying a cache=false
URL query argument. This bypasses the source, derivative, and info caches, and also omits any Cache-Control
response header that may be configured, on a per-request basis, which is useful for testing and health checks.
Various processors support various additional query arguments that the IIIF Image API cannot support in the path portion of an image request URL. These are detailed in the processor documentation.