Format options
Image file format (fmt)
The image format option allows to specify the desired output image format.
For example: fmt=png selects PNG as the save option.
https://fx.images.drivecommerce.com/api/v1/drive/image/dog?fmt=png
https://fx.images.drivecommerce.com/api/v1/drive/image/dog?fmt=webp-auto
If not specified, the image server will default to 32-bit PNG image format.
Supported file formats options include:
Option | Description |
|---|---|
| Saves output image in 24-bit PNG format without alpha (transparency) channel. |
| Saves output image in 32-bit PNG format with transparency channel. |
or
| Saves output image in JPEG file format. See |
| Saves image as a WebP image file using lossy image compression. Using Lossy WebP can be a great alternative to classic JPEG image compression, with up to 30% better image compression ratio and wide browser support. Unlike JPEG, WebP images support transparency channel. WebP images support variable compression quality specified using |
| Special image format parameter value. If the user browser supports WebP image format, the image server will generate image using WebP compression, and will default to JPEG otherwise. |
| Save image as a WebP image file using lossless image compression. Lossless WebP format is a great alternative to PNG images, providing better compression even when using transparency. WebP images support variable compression quality specified using |
| Special image format parameter value. If the user browser supports WebP image format, the image server will generate image using WebP compression, and will default to 32-bit PNG otherwise. |
| Save output image using TIFF image format. See While TIFF image compression is always lossless, when specifying value |
| The output image will be rasterized and embedded in a PDF file. |
Special image formats
Some output image formats have special considerations, and typically are used to generate a production-ready file using specific requirements.
Option | Description |
|---|---|
| The output image will be rasterized and embedded in a PDF file. |
| The output image is outputted as an SVG file. SVG output requires special considerations when rendering. For example, only vector images and text are allowed as source images for layers |
| Generate output file as an Illustrator 3.0 output file. Primarily targeted for the Laser Engraving machines with software that supports only Illustrator 3.0 as design files. |
| Similar to |
Quality (qlt)
Specify output image file quality. The parameter value should be a number between 0 (lowest quality) and 100 (highest quality).
For example: qlt=100
https://fx.images.drivecommerce.com/api/v1/drive/image/dog?fmt=webp-auto&qlt=10
Print resolution (dpi)
Specify output image file print resolution, dots-per-inch. If not specified and the file format requires the value, an error will be generated.
For example: dpi=300
Colorspace (as)
Allows to select a colorspace of the output image.
Allowed values:
srgbSelects sRGB color space. This is the default option.cmykSelects CMYK color space.
ICC profile (icc)
Provides a name of the ICC provide to be used for color conversions. An ICC profile is required when rendering images using CMYK colorspace.
The ICC profile parameter should be a name of a file that is uploaded to the customer’s image storage.
For example: icc=printer.icc