You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now we serve previews in png or jpg. Which has the advantage of being support on nearly every platform since the late 90s. But of course it is no longer the best solution out there.
I would propose to allow different image formats. The top candidate in my opinion is webp. This allows for smaller images at comparable quality. Of course the backend would need to distinquis what to server but I'm sure we can solve that with some js magic to set the accept headers ;)
This doesn't mean we fully get rid of the jpg an png as older firefox and IE versions do not support it. But I bet this could be performance boost especially when using a lot of images.
👍 for WebP, it is now supported by the major web browsers, and is more interesting than JPEG, PNG and GIF if we look at the quality/file size.
I think that would be a nice addition, for instance for people who wants to save some storage space on their servers thanks to WebP, for a galery of pictures, and so on.
And images in this format would speed up page loading (smaller file size).
Reacted by Élia „KopfKrieg“, Behem0th, Thomas, Tamás Nagy, Julius Schaaf, Gianni Rosato, Dmitry Vodopyanov, Thomas McWork and Rene Schmidt
This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.
This has been written in 2019.. when I see the code one would think this could be added to the main server software?
Just a thought, when one takes a look at 'oc_filecache' you see that the preview images are generated in the same format as the original (JPG / PNG). Webp is now (version 24.0.3) not really supported. When I upload a webp image, the preview generated is in PNG!
Could it be an idea to add the functionality for webp and add the following option to the config:
'preview_format' => 'webp',
This because webp is smaller then PNG and JPG, so when one would want previews in webp, oen would want it for all previews..
Reacted by lapineige, Joan Marcè i Igual, Flow86, Daniel Langbein and Forza
JXL (Jpeg XL) support would be really nice. Support has increased a lot (Apple and Linux are supporting it out of the box, Adobe has added support and even Chrome and Firefox have decided to adopt it.
Activity
lapineige commentedon Mar 5, 2019
👍 for WebP, it is now supported by the major web browsers, and is more interesting than JPEG, PNG and GIF if we look at the quality/file size.
I think that would be a nice addition, for instance for people who wants to save some storage space on their servers thanks to WebP, for a galery of pictures, and so on.
And images in this format would speed up page loading (smaller file size).
MorrisJobke commentedon Mar 25, 2019
ref #9857
stale commentedon Jun 7, 2019
This issue has been automatically marked as stale because it has not had recent activity and it seems to be missing some essential informations. It will be closed if no further activity occurs. Thank you for your contributions.
J0WI commentedon Jun 26, 2019
There is a tiny app for WebP support written by @Flow86:
https://github.com/Flow86/preview_webp
Would you agree to merge this functionality upstream?
Flow86 commentedon Jun 26, 2019
yes of course you can merge the functionality to upstream
stefaang commentedon Sep 27, 2019
Here's an interesting demo with blurred webp preloads: https://jmperezperez.com/webp-placeholder-images/
SimplyCorbett commentedon Jan 9, 2021
Can we get a status update on this?
mrAceT commentedon Jul 29, 2022
This has been written in 2019.. when I see the code one would think this could be added to the main server software?
Just a thought, when one takes a look at 'oc_filecache' you see that the preview images are generated in the same format as the original (JPG / PNG). Webp is now (version 24.0.3) not really supported. When I upload a webp image, the preview generated is in PNG!
Could it be an idea to add the functionality for webp and add the following option to the config:
'preview_format' => 'webp',
This because webp is smaller then PNG and JPG, so when one would want previews in webp, oen would want it for all previews..
76 remaining items
sscherfke commentedon Aug 21, 2026
JXL (Jpeg XL) support would be really nice. Support has increased a lot (Apple and Linux are supporting it out of the box, Adobe has added support and even Chrome and Firefox have decided to adopt it.
edit: Firefox 157 will support JPEG XL by default on all platforms: https://groups.google.com/a/mozilla.org/g/dev-platform/c/3YMV4MS34KA?pli=1