This endpoint is available at /iiif/2.
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
. (It is possible to restrict access to only these sizes using 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:
module Cantaloupe
##
# Used to add additional keys to the information JSON response. including
# `attribution`, `license`, `logo`, `service`, and custom keys. See
# [http://iiif.io/api/image/2.1/#image-information](the Image API
# specification).
#
# @param identifier [String] Image identifier
# @return [Hash] Hash that will be merged into IIIF Image API 2.x
# information responses. Return an empty hash to add nothing.
#
def self.extra_iiif2_information_response_keys(identifier)
{
'attribution' => 'Copyright My Great Organization. All rights '\
'reserved.',
'license' => 'http://example.org/license.html',
'logo' => 'http://example.org/logo.png',
'service' => {
'@context' => 'http://iiif.io/api/annex/services/physdim/1/context.json',
'profile' => 'http://iiif.io/api/annex/services/physdim',
'physicalScale' => 0.0025,
'physicalUnits' => 'in'
}
}
end
end
This endpoint can be enabled or disabled using the endpoint.iiif.2.enabled
configuration key.
This endpoint is available at /iiif/1.
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
This endpoint can be enabled or disabled using the endpoint.iiif.1.enabled
configuration key.