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

avif #307

Open
gedw99 opened this issue Sep 23, 2021 · 1 comment
Open

avif #307

gedw99 opened this issue Sep 23, 2021 · 1 comment

Comments

@gedw99
Copy link

gedw99 commented Sep 23, 2021

https://caniuse.com/avif

Would you consider avif worth supporting ?

I know its NOT supported on browsers but it will eventually, and i would like to put it into blue green ops

@willnorris
Copy link
Owner

willnorris commented Sep 23, 2021

I'm not opposed to supporting the format, but I imagine it will run into the same problem as webp and HEIC (some of which is discussed in #114 and #292), which is the lack of a native Go library for encoding and decoding. https://github.com/Kagami/go-avif seems to be the main option for Go, and it requires cgo, which I'm avoiding in this project for now.

The one-day, maybe, eventual rearchitecture of imageproxy as described in https://github.com/willnorris/imageproxy/blob/main/docs/plugin-design.md would be the most likely solution for opening up the option for cgo libraries. But as discussed there, I have no immediate plans for that rewrite, and honestly may never get around to it.

In the meantime, it looks like imgproxy (different project, similar name) does have AVIF support, since they use libvips for image encoding/decoding: imgproxy/imgproxy#456. imgproxy requires that you bring your own caching (like putting it behind a CDN), which may or may not be what you're looking for.

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

No branches or pull requests

2 participants