IIIF::ImageAPI - IIIF Image API implementation as Plack application
use Plack::Builder; use IIIF::ImageAPI; builder { enable 'CrossOrigin', origins => '*'; IIIF::ImageAPI->new( root => 'path/to/images', base => 'https://example.org/iiif/' ); }
Image directory
Cache directory. Set to a temporary per-process directory by default.
Base URI which the service is hosted at, including trailing slash. Likely required if the service is put behind a web proxy.
Redirect requests to the canonical URI syntax and include (disabled by default).
List of supported image formats. Set to ['jpg', 'png', 'gif'] by default.
['jpg', 'png', 'gif']
Additional command line arguments always used when calling ImageMagick. For instance [qw(-limit memory 1GB -limit disk 1GB)] to limit resources.
[qw(-limit memory 1GB -limit disk 1GB)]
To install IIIF, copy and paste the appropriate command in to your terminal.
cpanm
cpanm IIIF
CPAN shell
perl -MCPAN -e shell install IIIF
For more information on module installation, please visit the detailed CPAN module installation guide.