Additional parameters

There are also parameters that controls level of jpeg compression and output image format.

Parameter nameDescription

quality

Integer value for the level of jpeg or webp compression.

output_format

The format of the output image: - jpeg - png - webp

max_file_size

Integer or string value with maximum file size. It supports "kb", "mb" and "gb" units. It is used with output_format equals jpeg or webp. When specified, Deep Image API tries to match highest possible jpeg quality and specified max_file_size.

Let's check the example

{
    "url": "image_url",
    "width": 1000,
    "height": 1000,
    "output_format": "jpeg",
    "quality": 85,
    "max_file_size": "1MB"
}

Last updated