This support forum is no longer in use. Please use the Cloudinary Community at https://community.cloudinary.com/ to receive assistance from other members of the community and from Cloudinary's support team. For account-specific questions or if you believe that you've encountered a bug, please contact the Cloudinary team directly via the "submit a request" option on this support site.

Comments

6 comments

  • Avatar
    Raya Straus

    Hi Amir,

    You can simply access the URL without the extension. For example, http://res.cloudinary.com/demo/image/upload/sample.jpg

    Will be 

    http://res.cloudinary.com/demo/image/upload/sample

    1
    Comment actions Permalink
  • Avatar
    Wayne McManus

    Is there a way to add/include the file extension explicitly (depending on Cloudinary working out the best format via 'f_auto')? I'd like a more visual representation as to the type of file 'f_auto' serves in each instance.

    0
    Comment actions Permalink
  • Avatar
    Daniel Mendoza

    @Wayne

    There is no way to automatically update the URL and include the extension that is chosen when using `f_auto` as that would require some sort of external application that needs to determine the format the image returned as and then modify the html. The benefits of such a functionality are not obvious.

    Furthermore, there is some reasoning to adding the extension at the end of a URL, and that is as a fallback in case f_auto does not resolve to anything on that browser. For example, let's say my image has a transparency, I would explicitly set it to png at the extension, but if this image is requested on Safari, which doesn't support webp, wdp, but does support jp2, it will return the png instead because the original image contains a transparency.
    If webp were supported on Safari (which it will in the future) it will deliver it as webp since it supports transparency.

    webp -> Chrome and Firefox
    wdp   -> Edge and some IE browsers
    jp2     -> Safari 

    0
    Comment actions Permalink
  • Avatar
    Wayne McManus

    Thanks, Daniel. Makes sense, although I've tried specifying f_auto in my image requests and I'm pretty sure I got webp back (not AVIF). If I want to include AVIF as a potential auto-formatting option, do I specify f_avif instead of f_auto, or as well as?

    0
    Comment actions Permalink
  • Avatar
    Raz Ziv

    Hey Wayne,

    AVIF in `f_auto` is currently in beta phase and is not yet supported by default. If you wish to participate in the beta, please open a direct support ticket at support@cloudinary.com.

    With regard to using `f_avif` instead of `f_auto`, that will not add AVIF to `f_auto` but will remove the `f_auto` functionality completely and instead instruct our servers to always return an AVIF image to all browsers, including those that don't yet support this new format.

    0
    Comment actions Permalink
  • Avatar
    Wayne McManus

    Thanks for the info, both.

    0
    Comment actions Permalink

Post is closed for comments.