DocumentationDynamic Media Image Serving and Rendering API

fmt

Last update: February 22, 2022
  • Topics:
  • Dynamic Media Classic,SDK/API

CREATED FOR:

  • Developer
  • User

Reply image format. Specifies the image encoding format for image data sent to the client and the corresponding response MIME type for the HTTP response header.

fmt= *format*[,[ *pixelType*][, *tiffCompression*]]

formatjpegLossy JPEG.
jpgLossy JPG.
pngLoss-less PNG.
png-alphaLoss-less PNG with alpha channel.
tifTIFF.
tif-alphaTIFF with alpha channel.
swfLossy JPEG embedded into a Macromedia swf file.
swf-alphaLossy JPEG and a deflate-compressed Mask embedded into a Macromedia swf file.
pdfImage embedded in PDF.
epsUncompressed binary Encapsulated PostScript.
gifGIF with 256 colors.
gif-alphaGIF with 255 colors plus key-color transparency.
pixelTypergbReturn RGB image data.
grayReturn gray-scale image data.
cmykReturn CMYK image data.
tiffCompressionnoneUncompressed.
lzwLZW (Lempel-Ziv-Welch) compression (lossless).
zip"Deflate" compression (lossless).
jpegJPEG compression (lossy).

pixelType Effects output color space conversion when icc= is not specified; the default color profile corresponding to pixelType is applied. If color management is disabled, naïve conversion is applied. pixelType Is ignored when icc= is specified, which determines the output pixel type.

compression Permitted only if tif, tif-alpha, or PDF is specified as the format. Refer to the table below for the compression options supported for these image formats.

qlt- Sets the JPEG encoding options for these formats: JPEG, TIFF with JPEG compression, PDF with JPEG compression, and SWF file. Use quantize= if fmt=gif or fmt=gif-alpha. Refer to the command descriptions for details. The other formats do not have settable options.

Eight bits per pixel component are returned for all formats and pixel types.

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 option commands can be applied.

formatpixelTypeResponse MIME TypeEmbed ICC ProfileOptions
jpeg, jpgrgb, gray, cmyk<image/jpeg>Yesqlt=
png, png-alphargb, gray<image/png>Yes
png8, png8-alphargb<image/png>yes
tif, tif-alphargb, gray, cmyk<image/tiff>Yes

tiffCompression

(none|lzw|zip|jpeg), pathEmbed=, qlt

( qlt= is ignored unless tiffCompression is set to 'jpeg'.)

swf, swf-alphargb, gray<application/x-shockwave-flash>

No

(The Flash Player ignores embedded ICC profiles.)

qlt= , attribute::TrustedDomains
pdfrgb, gray, cmyk<application/pdf>Yes

tiffCompression

(none|zip|jpeg),qlt=

( qlt= is ignored unless tiffCompression is set to 'jpeg'.)

epsrgb, gray, cmyk<image/eps>YespathEmbed=
gif, gif-alpha

rgb, gray

(Data is converted to palette after conversion to gray or rgb.)

<image/gif>No

Specifies encoding format for reply image data sent to the client and the corresponding response MIME type for the HTTP reply header.

png-alpha Returns unassociated alpha (that is, alpha does not pre-multiply the pixel values), while tif-alpha, and swf-alpha return associated alpha (that is, the alpha values are pre-multiplied with the alpha values). The alpha channel corresponds to the inverse of the vignette’s background mask for req=img, and to the group or object mask if there is req=object. To apply alpha when using a nested IR request, add fmt= with the appropriate alpha file format to the embedded IR request and the main request. No alpha data is returned if a CMYK or grayscale ICC profile is specified with icc=.

Properties

Can occur anywhere in the request.

Default

format Defaults to attribute::Formatand tiffCompression defaults to attribute::TiffEncoding. pixelType Defaults to rgb if icc= is not specified, otherwise it corresponds to the pixel type of the specified ICC profile.

See also

attribute::Format , attribute::JpegQuality, attribute::TiffEncoding, qlt=, iccEmbed=, pathEmbed=, req=, quantize=

recommendation-more-help
a26166cd-f2f4-45ce-996d-96a0f0d6cf49