]> git.maquefel.me Git - brevno-suite/hugo/commit
Add AVIF, HEIF and HEIC partial support (only metadata for now)
authorBjørn Erik Pedersen <bjorn.erik.pedersen@gmail.com>
Tue, 24 Feb 2026 18:45:12 +0000 (19:45 +0100)
committerGitHub <noreply@github.com>
Tue, 24 Feb 2026 18:45:12 +0000 (19:45 +0100)
commit49bfb1070be5aaa2a98fecc95560346ba3d71281
tree2397f168e494019100da3ed99113593a229ba281
parentb7203bbb3a8d7d6b0e808f7d7284b7a373a9b4f6
Add AVIF, HEIF and HEIC partial support (only metadata for now)

* Add AVIF, HEIF and HEIC partial support

* Add them as media types.
* Support reading metadata (Width, Height, Exif, etc.) from these formats.
* Add a new template function IsImageResourceMeta to check if a resource supports image metadata operations, which will return true for AVIF, HEIF and HEIC resources even if they don't support full image operations yet.

Fixes #14549
14 files changed:
common/hugio/readers.go
hugolib/integrationtest_builder.go
media/builtin.go
media/config_test.go
resources/images/codec.go
resources/images/config.go
resources/images/image.go
resources/images/meta/meta_integration_test.go
resources/resource_spec.go
resources/testdata/sunset.avif [new file with mode: 0644]
resources/transform.go
tpl/images/images.go
tpl/reflect/reflect.go
tpl/reflect/reflect_integration_test.go