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

Make AVIF and WEBP optional, even if CGO is enabled #305

Closed
farhaven opened this issue Jun 25, 2024 · 1 comment
Closed

Make AVIF and WEBP optional, even if CGO is enabled #305

farhaven opened this issue Jun 25, 2024 · 1 comment

Comments

@farhaven
Copy link

Hi!

We're building our binaries with CGO enabled because another dependency forces us to. Since this enables AVIF and WEBP, our code now depends on libwebp and libaom-dev, which in turn means we need to provide them in our build infrastructure.

Since we don't intend to use either AVIF or WEBP in the foreseeable future, would it be possible to build those formats only if, say, build tags avif and webp are set?

I can provide a patch if this is something you'd consider. If not, I think the new dependencies should be mentioned in the repo README file.

@tdewolff
Copy link
Owner

I've created a new build tag 'formats' to enable those formats!

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