How to setup fallback image format ?

In Cloudimage and Filerobot you can decide in which format (WEBP, JPEG, PNG) to deliver your images using the URL parameter "force_format="

There might be scenarios where the image format delivered might not be supported by your system or browser. Example:
http://sample.li/eiffel.jpg?force_format=webp
here the image will be delivered in "webp" format to the client but some browsers do not support webp formats.

For the above scenario you can have fallback image formats by giving multiple comma-separated image formats in "force_format=". Example:

http://sample.li/eiffel.jpg?force_format=webp,jpeg,png

here first .webp will be tried ,if not acceptable then .jpeg, if not acceptable then .png .

The idea is if the first format is not acceptable then it will fallback to the next format and so on. 

 

If you need more clarifications feel free to reach out to our Support team mentioning:

  • Your token
  • Short description of the issue.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Please sign in to leave a comment.