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_heightendpoint.iiif.min_tile_size configuration key, or the full image dimensions.endpoint.iiif.min_tile_size.formatsqualitiesprofileThis endpoint can be enabled or disabled by setting endpoint.iiif.1.enabled to true or false in the configuration file.
This endpoint is available at /iiif/2.
Cantaloupe implements version 2.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.
sizesendpoint.iiif.2.restrict_to_sizes configuration option.)tileswidth 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/formatsprofile/maxAreamax_pixels in the configuration. If set to zero, it will be omitted.profile/qualitiesprofile/supportsattribution, service, etc.)In addition to the the server-supplied keys that appear in the information JSON response, custom keys can be added, such as to declare service profiles or, beginning in Image API 2.1, an optional rights statement and/or logo. The delegate script merely 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
endThis endpoint can be enabled or disabled by setting endpoint.iiif.2.enabled to true or false in the configuration file.