fmt fmt
Response Image Format.
fmt=format[, [pixelType],[compression]]
format – avif-alpha | avif | eps | f4m | gif-alpha | gif | heic | jpeg | jpeg2000-alpha | jpeg2000 | jpegxr-alpha | jpegxr | jpg | m3u8 | pdf | pjpeg | png-alpha | png | png8-alpha | png8 | swf-alpha | swf | swf3-alpha | swf3 | tif-alpha | tif | web-alpha | webp
formatavif-alphaavifepsf4mgif-alphagifheicjpegjpeg2000-alphajpeg2000jpegxr-alphajpegxrjpgm3u8pdfpjpegpng-alphapngpng8-alphapng8swf-alphaswfswf3-alphaswf3tif-alphatifwebp-alphawebppixelType – rgb | gray | cmyk
pixelTypecmykgrayrgbcompression – jpeg | lossy | lossless | lzw | none | zip
compressionjpeglossylosslesslzwnonezip-
formatspecifies the image encoding format for image data sent to the client and the corresponding response MIME type for the HTTP response header. -
pixelTypecan be used to effect output color space conversion whenicc=is not specified.The default color profile corresponding to
pixelTypeis applied. If color management is disabled, naïve conversion is applied.pixelTypeis ignored whenicc=is specified, which determines the output pixel type. -
compressionis permitted only iftif,tif-alpha,pdf,webp,webp-alpha,jpeg2000,jpeg2000-alpha,jpegxr, orjpegxr-alphais specified as theformat. Refer to the table below for the compression options supported for these image formats.
You can use qlt= to set the JPEG encoding options for these formats: JPEG, TIFF with JPEG compression, PDF with JPEG compression, and SWF. WebP, JPEG 2000, and JPEG XR also use qlt= but the values result in different qualities for the different formats. Use quantize= if fmt=gif or fmt=gif-alpha. Refer to the command descriptions for details. The other formats do not have settable options.
8 bits per pixel component are returned for all formats and pixelTypes (8 bits per pixel for GIF).
The following table lists the valid combinations of *format*and pixelType, the corresponding HTTP response MIME types, whether ICC profiles can be embedded (see iccEmbed=), and what format-specific options you can apply.
compression ( lossy , lossless )
qlt= is ignored for lossless .
Because there is no concept of chrominance downsampling with the WebP format, if you use a second value with qlt (for example, qlt=80,1 ) the second value ( 1 ) is ignored.
rgb, gray
Data is converted to palette after conversion to gray or rgb.
compression ( lossy , lossless )
qlt= is ignored for lossless .
Because there is no concept of chrominance downsampling with the WebP format, if you use a second value with qlt (for example, qlt=80,1 ) the second value ( 1 ) is ignored.
pathEmbed= , pscan= , qlt= , xmpEmbed=
The pscan= parameter applies only to pjpeg format.
compression ( lossy , lossless )
qlt= is ignored for lossless .
Because there is no concept of chrominance downsampling with the WebP format, if you use a second value with qlt (for example, qlt=80,1 ) the second value ( 1 ) is ignored.
compression
( none|zip|jpeg ), qlt=
qlt= is ignored unless compression is set to jpeg .
No
Note: The Adobe Flash Player ignores embedded ICC profiles.
compression
( none|lzw|zip|jpeg )
'tiff' only; 'tiff-alpha' does not support jpeg compression.
qlt=
qlt= is ignored unless compression is set to jpeg .
, pathEmbed=, xmpEmbed=
compression ( lossy , lossless )
qlt= is ignored for lossless .
Because there is no concept of chrominance downsampling with the WebP format, if you use a second value with qlt (for example, qlt=80,1 ) the second value ( 1 ) is ignored.
Properties section-5f96b0ce7c5a4df1bf52e24ea78c3dae
Request attribute. Applies regardless of current layer setting if req=img (default) or req=mask; ignored otherwise.
type is ignored if iccProfile= is specified.
Default section-f885a785b32c44fea347db15fdb2ab1f
fmt=jpeg, *defaultType*,none, where the defaultType is handled as follows: If icc= is specified, defaultType corresponds to the pixel type of the specified ICC profile. If icc= is not specified, defaultType is gray if req=mask, otherwise it is rgb.
Examples section-b93222e652df404a84c69025247f07df
Request a small, low-quality preview image in JPEG format (default):
http:// *server*/myRootId/myImageId?qlt=60&wid=200
Request the same image converted to gray-scale:
http:// *server*/myRootId/myImageId?fmt=jpeg,gray&qlt=60&wid=200
Request the same image in a loss-less format with alpha channel and at high resolution:
http:// *server*/myRootId/myImageId?fmt=png-alpha&wid=300
Request the alpha channel for the same image as a gray-scale TIFF image:
http:// *server*/myRootId/myImageId?req=mask&fmt=tif,gray&wid=300
Convert the same image to cmyk using the default ICC profiles:
http:// *server*/myRootId/myImageId?fmt=tif,cmyk&wid=300
Convert the same image to cmyk using a different ICC profile and embed the profile in the TIFF image:
http:// *server*/myRootId/myImageId?fmt=tif&wid=300&icc=myPrinterProfile&iccEmbed=1
Deliver this image as a TIF file with JPEG compression without pixel type conversion:
http:// *server*/myRootId/myImageId?fmt=tif,,jpeg&qlt=95&wid=300
Convert image to a bi-tonal GIF with key-color transparency and force colors to black and white:
http:// *server*/myRootId/myImageId?fmt=gif-alpha&wid=100&quantize=adaptive,off,2,000000,ffffff
Lossy with a quality setting of 80:
http:// *server*/myRootId/myImageId?wid=300&fmt=webp&qlt=80
Lossless with alpha:
http:// *server*/myRootId/myImageId?wid=300&fmt=webp-alpha,,lossless
Lossy with a quality setting of 80:
http://server/myRootId/myImageId?wid=300&fmt=jpeg2000&qlt=80
Lossless with alpha:
http://server/myRootId/myImageId?wid=300&fmt=jpeg2000-alpha,,lossless
Lossy with a quality setting of 80:
http://server/myRootId/myImageId?wid=300&fmt=jpegxr&qlt=80
Lossless with alpha:
http://server/myRootId/myImageId?wid=300&fmt=jpegxr-alpha,,lossless
See also section-fce8d69c74234bf48cf814d799409541
qlt= , quantize=, req=, icc=, iccEmbed=, pathEmbed=, pscan.