NAME
IIIF::ImageAPI - IIIF Image API implementation as Plack application
SYNOPSIS
use Plack::Builder;
use IIIF::ImageAPI;
builder {
enable 'CrossOrigin', origins => '*';
IIIF::ImageAPI->new(
images => 'path/to/images',
base => 'https://example.org/iiif/'
);
}
CONFIGURATION
- images
-
Image directory
- cache
-
Cache directory. Set to a temporary per-process directory by default.
- base
-
Base URI which the service is hosted at, including trailing slash. Likely required if the service is put behind a web proxy.
- canonical
-
Redirect requests to the canonical URI syntax and include (disabled by default).
- formats
-
List of supported image formats. Set to
['jpg', 'png', 'gif']
by default. - magick_args
-
Additional command line arguments always used when calling ImageMagick. For instance
[qw(-limit memory 1GB -limit disk 1GB)]
to limit resources.