file extension
Hello,
I was wondering how can I remove the file extension name, so the image URL doesn't show png or jpg, for example: https://res.cloudinary.com/svgsprite-com/image/upload/other_envato_rate_pet ?
Thank you
-
Hi Amir,
You can simply access the URL without the extension. For example, http://res.cloudinary.com/demo/image/upload/sample.jpg
Will be
-
@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 -
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.
Post is closed for comments.
Comments
6 comments