Package digilib.conf
Enum DigilibOption
- All Implemented Interfaces:
Serializable
,Comparable<DigilibOption>
,java.lang.constant.Constable
Enum of options for the digilib "mo" parameter.
- Author:
- casties
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionscale the highest resolution image by an absolute factor given by the scale parameter.use the pre-scaled image that is bigger than the requested size (default).send the file in the highest resolution, cropped to fit [dw x dh].scale the (selected area of the) image proportionally to fill [dw x dh] with the shorter side, cropping the longer side.disallow upscaling in IIIF V3dirInfo returns directory contentssend error response as HTTP status code.send error response as image (default).send error response as plain text.send the file as-is (may be very large and all sorts of image types!).scale the (selected area of the) image proportionally to fill [dw x dh] with the longer side, filling out the image on the shorter side if possible.scale the (selected area of the) image proportionally to fit inside [dw x dh], preserving its aspect ratio (default).only use the highest resolution image.mirror image horizontally.send IIIF image info (instead of image).the resulting image is always sent as JPEG (otherwise TIFF and PNG images are sent as PNG).prefer the next-smaller pre-scaled image.scale to original size based on image resolution (from the image metadata) and display resolution (from parameter ddpi).the resulting image is always sent as PNG (otherwise JPEG and J2K images are sent as JPEG).interpret wx, wy, ww, wh as pixel coordinates on the highest resolution image.quality of interpolation in scaling (q0: worst, q3 best).quality of interpolation in scaling (q0: worst, q3 best).quality of interpolation in scaling (q0: worst, q3 best).quality of interpolation in scaling (q0: worst, q3 best).send the file as-is with a mime-type of "application/octet-stream" so the browser presents a download dialog.send redirect to IIIF image info URIselect square image region from the full image (short side of the image)^2.scale the (selected area of the) image to fill [dw x dh], changing its aspect ratio.mirror image vertically.the resulting image is always sent as webp -
Method Summary
Modifier and TypeMethodDescriptionstatic DigilibOption
Returns the enum constant of this type with the specified name.static DigilibOption[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
fit
scale the (selected area of the) image proportionally to fit inside [dw x dh], preserving its aspect ratio (default). -
squeeze
scale the (selected area of the) image to fill [dw x dh], changing its aspect ratio. -
crop
scale the (selected area of the) image proportionally to fill [dw x dh] with the shorter side, cropping the longer side. -
fill
scale the (selected area of the) image proportionally to fill [dw x dh] with the longer side, filling out the image on the shorter side if possible. -
clip
send the file in the highest resolution, cropped to fit [dw x dh]. -
osize
scale to original size based on image resolution (from the image metadata) and display resolution (from parameter ddpi). Fails if either resolution is unknown. -
ascale
scale the highest resolution image by an absolute factor given by the scale parameter. -
file
send the file as-is (may be very large and all sorts of image types!). If the configuration doesn’t allow sending files (sendfile-allowed=false) revert to clip. -
rawfile
send the file as-is with a mime-type of "application/octet-stream" so the browser presents a download dialog. -
errtxt
send error response as plain text. -
errimg
send error response as image (default). -
errcode
send error response as HTTP status code. -
q0
quality of interpolation in scaling (q0: worst, q3 best). -
q1
quality of interpolation in scaling (q0: worst, q3 best). -
q2
quality of interpolation in scaling (q0: worst, q3 best). -
q3
quality of interpolation in scaling (q0: worst, q3 best). -
hires
only use the highest resolution image. -
autores
use the pre-scaled image that is bigger than the requested size (default). -
lores
prefer the next-smaller pre-scaled image. -
vmir
mirror image vertically. -
hmir
mirror image horizontally. -
jpg
the resulting image is always sent as JPEG (otherwise TIFF and PNG images are sent as PNG). -
png
the resulting image is always sent as PNG (otherwise JPEG and J2K images are sent as JPEG). -
webp
the resulting image is always sent as webp -
pxarea
interpret wx, wy, ww, wh as pixel coordinates on the highest resolution image. -
sqarea
select square image region from the full image (short side of the image)^2. -
info
send IIIF image info (instead of image). -
redirect_info
send redirect to IIIF image info URI -
dir
dirInfo returns directory contents -
deny_upscale
disallow upscaling in IIIF V3
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-