-
Notifications
You must be signed in to change notification settings - Fork 206
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
Support AVIF format #238
Comments
Will need to check this, thanks for the heads-up! |
Reading 8-bit AVIF images should already work, see for example: However, some AVIF images (with the Writing AVIF images requires some research on our side to see if our servers can handle that. It also requires some minor adjustments to the codebase. |
Firefox Nightly supports AVIF |
We started some work on this, but it is really beta, and AVIF-encoding will be an uphill battle (consuming lots of resources). We will notify you here if we start testing on images.weserv.nl, for now you can experiment using our code, the support is there as per ac3e355 . |
It works well, I didn't found a bug on hundreds of images 😍 |
Thanks for adding support for avif! Any expected timeline by when it could be used on the main |
AVIF decoding should already be supported (live demo). Unfortunately, AVIF encoding is slow and consumes a lot of resources even when rav1e is used, which is why we disabled it in the Note that we are considering supporting JPEG-XL, as it is a good competitor to AVIF. However, it is not currently supported within the modern web browsers by default: https://caniuse.com/jpegxl. |
@kleisauke Apple just announced that they will add JPEG-XL support in the upcoming Safari 17 release (source). It's likely that this will motivate the other browser vendors to improve their implementations as well. Are there any updates regarding JPEG-XL support for wsrv.nl? |
@kleisauke now that all major browsers support AVIF and it's considered a Baseline 2024 feature, is there any chance of having it supported as an output? The bandwidth savings compared to JPEG can be quite significant. Using https://squoosh.app, anecdotally I've found a ~20% file size reduction comparing JPEG @ 75 quality vs AVIF @ 75 quality 0 effort and a ~32% file reduction with AVIF @ 75 quality 2 effort. |
@FinnRG JPEG XL support is blocked on libjxl/libjxl#1450 and libvips/libvips#3132. Furthermore, I would also like to see this being fuzzed in libvips' OSS-Fuzz integration before we enable it on our servers (see commit google/oss-fuzz@890953f for details). @charsleysa Comment #238 (comment) is still relevant today, see e.g. issue libvips/libvips#2983. |
This comment was marked as off-topic.
This comment was marked as off-topic.
Will there be support for animated avifs(basically just av1 video)? |
I would say that jpeg successor would more likely be jpeg xl. (I know, you manualy need to enable support for that in firefox and need to install an extension for it in chrome based ones) |
Hello :)
First of all, I'd like to thank you for this awesome open source project, it's amazing!
In August 2020, Chrome will be able to show AVIF images.
Source: https://chromium-review.googlesource.com/c/chromium/src/+/2276542
Because libvips already support AVIF format, it could be nice to add this format in weserv project, what do you think?
Have a great day,
Maxime
The text was updated successfully, but these errors were encountered: