In which format the derived images will be downloaded by default?

Options
Sovik
Sovik Member Posts: 22
edited October 2023 in Developer APIs

In which format the derived images will be downloaded by default?

Answers

  • Tamara
    Tamara Member, Cloudinary Staff Posts: 100
    Options

    Hi there,

    Cloudinary typically delivers derived images in the same format as the source image by default. This means that if your source image is in JPEG format, the derived images will also be in JPEG format, and if the source image is in PNG format, the derived images will be in PNG format.

    However, we provide extensive options for configuring the format and other characteristics of derived images using transformation parameters in the image URL. You can specify the desired format explicitly in the URL if you want the derived images to be in a different format than the source image.

    For example, if you want to ensure that a derived image is in PNG format regardless of the source format, set the file to "png" in the URL. Here's an example:

    Original Image URL:

    https://res.cloudinary.com/demo/image/upload/sample.jpg

    Derived Image URL with Forced PNG Format:

    https://res.cloudinary.com/demo/image/upload/sample.png

    Best

    -Tamara