datocms / product-roadmap

This project is now discontinued. For feature requests, please use our community forum.
https://community.datocms.com/
19 stars 1 forks source link

WebP image support #172

Closed y-luis-rojo closed 5 years ago

y-luis-rojo commented 5 years ago

Is your feature request related to a problem? Please describe. File field does not show preview when using a WebP image.

Describe the solution you'd like I would like the image preview is shown when uploading a WebP image the same as for other image formats.

Additional context image

stefanoverna commented 5 years ago

Sorry but Imgix right now does not support transformations if the source format is WebP.. so.. we cannot do anything about that :( Furthermore, since webp is not a format that is supported in every browser/context, it would not be advisable to store them as source. Better use PNGs! If you use PNGs, the auto=format transformation will automatically determine whether the image can be served in a better format by a process called automatic content negotiation.