Jakob Voß
and 1 contributors

NAME

IIIF::Request - IIIF Image API request object

SYNOPSIS

    use IIIF::Request;

    my $request = IIIF::Request->new('125,15,120,140/90,/!345/gray.jpg');

DESCRIPTION

Stores the part of an IIIF Image API URL after {identifier}:

    {region}/{size}/{rotation}/{quality}.{format}

In contrast to the IIIF Image API Specification, all parts are optional. Omitted parts are set to their default value except for format which may be undefined. In addition, the following fields may be set:

region_pct
region_px
upscale
size_pct
size_px
limit
mirror
degree

METHODS

new( [ $request ] )

Parses a request string. It's ok to only include selected image manipulations.

as_string

Returns the full request string.

is_default

Returns whether the request (without format) is the default request full/max/0/default to get an unmodified image.