All values are supported with the exception of ^max as we don't know maxWidth, maxHeight or maxArea.
Note that behaviour of this method can be controlled - for w,, ,h, pct:n and w,h where the values "MUST NOT be greater than XX" this method will throw an exception, or return the original size depending on value of InvalidUpscaleBehaviour enum (defaults toInvalidUpscaleBehaviour.Throw).
e.g. Image 200x200 and SizeParamter /500,/ will return 200x200.
Helper method for
SizeParameter
that will resize givenSize
according to param values.This is accordance to IIIF ImageApi 3.
All values are supported with the exception of
^max
as we don't knowmaxWidth
,maxHeight
ormaxArea
.Note that behaviour of this method can be controlled - for
w,
,,h
,pct:n
andw,h
where the values "MUST NOT be greater than XX" this method will throw an exception, or return the original size depending on value ofInvalidUpscaleBehaviour
enum (defaults toInvalidUpscaleBehaviour.Throw
).e.g. Image 200x200 and SizeParamter
/500,/
will return 200x200.