You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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.
Fixesgohugoio#14549
// ImageResourceTypeNone means that the resource is not an image, and thus does not support any image operations.
142
+
ImageResourceTypeNoneImageResourceType=iota
143
+
// This is an image, but with no support for any image operations.
144
+
ImageResourceTypeBasic
145
+
// ImageResourceTypeMetaOnly means that only metadata operations (e.g. getting width/height and other metadata) are supported for this format.
146
+
ImageResourceTypeMetaOnly
147
+
// ImageResourceTypeProcessable means that all image operations (resizing, cropping, etc.) are supported for this format.
148
+
ImageResourceTypeProcessable
149
+
)
150
+
151
+
// ImageFormatFromMediaSubType returns the image format for the given media subtype, and how much image processing operations are supported for this format.
0 commit comments