Skip to content
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 #508

Open
GNURub opened this issue Sep 11, 2020 · 12 comments
Open

Support AVIF #508

GNURub opened this issue Sep 11, 2020 · 12 comments

Comments

@GNURub
Copy link

GNURub commented Sep 11, 2020

I'd like to submit a proposal for a future feature to consider.

https://netflixtechblog.com/avif-for-next-generation-image-coding-b1d75675fe4

Format comparison:
https://jakearchibald.com/2020/avif-has-landed/

@kornelski
Copy link
Member

I've written pure-rust encoder:
https://lib.rs/crates/cavif

And a decoder that uses libaom:
https://lib.rs/crates/aom-decode

@lilith
Copy link
Member

lilith commented Sep 11, 2020 via email

@kornelski
Copy link
Member

cavif is pretty lean. I've replaced libavif with basically one big struct. It's 100% pure Rust. Includes rav1e. Executable is 1.7MB, gzips to 500KB.

aom-decode is fatter — 7MB — since it pulls in all of libaom. I haven't looked at trimming it down. Maybe dav1d would be smaller, but it needs meson and ninja to build, and I'm not a fan.

@lilith
Copy link
Member

lilith commented Sep 12, 2020 via email

@kornelski
Copy link
Member

I get that decoding brings in large dependencies, but you could support encoding only. Encoding can be done in pure Rust and rav1e is pretty lean. I've released my encoder as a library: https://docs.rs/ravif

@lilith
Copy link
Member

lilith commented Sep 14, 2020 via email

@iJungleboy
Copy link

Any progress on this? I would be very interested since AVIF support is at around 70% https://caniuse.com/avif and I believe it's really good.

@lilith
Copy link
Member

lilith commented Jan 6, 2022 via email

@iJungleboy
Copy link

No problem - and thanks for your more-than-amazing work!

@stevetayloruk
Copy link

Support for this would be great with Safari soon to be supporting. https://www.coywolf.news/webmaster/safari-now-supports-avif-in-macos-ventura-and-ios-16/

@zz
Copy link

zz commented Nov 24, 2022

@lilith AVIF support now?

@lilith
Copy link
Member

lilith commented Nov 24, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

6 participants