Implement AVIF decoding support

- Add github.com/gen2brain/avif dependency (CGO-free, WASM-based)
- Update decode() to try AVIF after WebP
- Add AVIF to SupportedInputFormats()
This commit is contained in:
2026-01-08 13:10:34 -08:00
parent 615586fcea
commit 1bdf0a9424
3 changed files with 13 additions and 0 deletions

1
go.mod
View File

@@ -57,6 +57,7 @@ require (
github.com/fatih/color v1.16.0 // indirect
github.com/felixge/httpsnoop v1.0.4 // indirect
github.com/fxamacker/cbor/v2 v2.9.0 // indirect
github.com/gen2brain/avif v0.4.4 // indirect
github.com/gen2brain/webp v0.5.5 // indirect
github.com/go-jose/go-jose/v4 v4.0.5 // indirect
github.com/go-logr/logr v1.4.2 // indirect