hugoDocs/content/functions/imageConfig.md

654 B

title linktitle description godocref date publishdate lastmod categories tags signature workson hugoversion relatedfuncs deprecated
imageconfig imageConfig Parses the image and returns the height, width, and color model. 2017-02-01 2017-02-01 2017-02-01
functions
images
false

{{% warning %}} imageConfig does not currently work in Hugo. See the related imageConfig issue. {{% /warning %}}

imageConfig parses the image and returns the height, width, and color model.

{{ with (imageConfig "favicon.ico") }}
favicon.ico: {{.Width}} x {{.Height}}
{{ end }}