structure:
assets/
├── image.avif
├── image.bmp
├── image.gif
├── image.heic
├── image.heif
├── image.jpg
├── image.png
├── image.svg
├── image.tiff
└── image.webp
template:
{{ range resources.Match "**" }}
{{ printf "Name: %s, IsImageResourceWithMeta: %t" .Name (reflect.IsImageResourceWithMeta .) }}
{{ end }}
output:
Name: /image.webp, IsImageResourceWithMeta: true
Name: /image.tiff, IsImageResourceWithMeta: true
Name: /image.svg, IsImageResourceWithMeta: false
Name: /image.png, IsImageResourceWithMeta: true
Name: /image.jpg, IsImageResourceWithMeta: true
Name: /image.heif, IsImageResourceWithMeta: true
Name: /image.heic, IsImageResourceWithMeta: true
Name: /image.gif, IsImageResourceWithMeta: true ** unexpected **
Name: /image.bmp, IsImageResourceWithMeta: true ** unexpected **
Name: /image.avif, IsImageResourceWithMeta: true
I used exiftool to verify that the image types match their extension.
My "thick finger" testing yesterday did not test these two image formats.
structure:
template:
output:
I used exiftool to verify that the image types match their extension.
My "thick finger" testing yesterday did not test these two image formats.