Skip to main content

When using f_auto, why the "Save as" dialog of Chrome/Edge save a JPEG (.jfif) file that is different from WebP (.webp) that DevTools show content-type "img/webp".

Comments

5 comments

  • Official comment
    Akshay Joshi

    Hi,

    We would need more information like your cloud name to see what is causing this error.

    Can you open a support ticket with this link.

    Also, mention this support forum question there and we can help you better.

     

     

  • apribase

    Please check this file by Edge and Chrome.

    https://res.cloudinary.com/apribase/image/upload/f_auto/v1623798713/Original_is_WebP_EXIF_wrjrvo.webp

    devtools: image/webp
    save as dialog: image/jpeg
    browser rendering: ...???

    Is there a way to see which format the browser is rendering?

     

    the above link url of support ticket is broken.

    0
  • Michal Kuperman

    Hi, 

    Thanks for providing the image URL.

    This URL indeed returns a `webp` image as shown in the devtools. With that said, due to a change in the chrome browser behavior, when you click "save as" chrome doesn't return the image you are actually seeing which is `webp`, but an image in a fallback format - jpg.
    If you try to save an image directly from a search in the browser you will see that chrome will save it as jpeg as well.

    Please let us know if you have any further questions. 

    Regards,

    Michal

    0
  • apribase

    Does `f_auto` of Cloudinary's server (CDN) distinguish betweens the "image requests for rendering" and the "image requests for `save as`" on chrome?

    0
  • Michal Kuperman

    Hi,

    The `f_auto` feature makes sure to deliver the image in the best format according to the requesting browser. With that said, it has no affect on the "save as" feature which belongs to the browser itself.
    I would suggest using the `fl_attachment` transformation to download the image and save it. When using `fl_attachment` along with f_auto, the downloaded image format will be the actual format of the delivered image.

    More info here: https://cloudinary.com/documentation/transformation_reference#fl_attachment

    Please let us know if you need any further assistance. 

    Regards,
    Michal

    0

Post is closed for comments.