How to resize Image and convert to webp via cloudflare image resize?


When i use direct request to image it convert to webp.

When i use request via resize /cdn-cgi/image/ it did’t convert.

Can cloudflare resize and convert to webp?
It will be realy cool when i resize png.
Please help.

Here is the documentation.

I would add the format=auto option.

Thanks a lot.
How to convert png to jpeg?

format=auto - look to header
format=jpeg - do not convert png to jpeg
format=webp - convert png to webp

This topic was automatically closed after 30 days. New replies are no longer allowed.