-
Notifications
You must be signed in to change notification settings - Fork 170
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Consider next gen image formats? #429
Comments
Not sure about AVIF, which are the pros etc., but at least for webp, yes it would be great to support it. I think you can already try by adding the webp extension to sigal/sigal/templates/sigal.conf.py Lines 49 to 60 in 7ba5f7b
If you want to help with things other than code, a few more things would be useful:
Also it seems that support in Safari is very recent (macOS 11). |
Adding webp to img_extensions causes images to be generated flawlessly - Wonderful! There just isn't any fallback. I've made a super bland nonsense image and it's herewith in the public domain: one and two (also in a gallery of course) Different qualities yield very different file sizes (all available in the gallery above). But as mentioned file size isn't the only advantage.
|
Based on the Changes file in the Pillow repository, the first mention of webp is in 2.1.0 (2013-07-02) with metadata support in 2.2.0, and I see no bugs beyond 5.1.0. |
Excellent, thanks ! |
webp is done with #433, thanks @Mousketeer for the test images. Maybe we can reconsider AVIF in the future when it is more widely supported ? |
Webp isn't quite there yet, it's an invalid setting for img_format . Bit of an addenum but it's important for the format, would be good to also get a setting to make webp lossless if it's picked for that. And something else besides that: webp supports animation too. I don't know what proccesor's used by this, but if it supports webp animation it'd be a mayor quality boost, even set to lossless webp makes way smaller files. |
Good point 👍 |
Shall enabling the WebP make uses of the HTML5 |
I think WebP is also supported by |
Hi, I'm wondering if there's any news on avif support? |
I speak from great ignorance, but wouldn't it be interesting to support something more modern than jpeg - after all a 1992 format?
Newer formats offer far better compression ratios (meaning smaller and faster galleries at better quality) higher colour depth and space and a lossless option (not sure if that's a valid point in Sigal's context, but still).
Drawbacks include massively increased encoding time and slightly more complicated system requirements.
I'm afraid I can only "help" and not "do", but I thought to get something rolling with this issue.
The text was updated successfully, but these errors were encountered: