images.Config
Returns an image.Config structure from the image at the specified path, relative to the working directory.
Syntax
images.Config PATH
Returns
image.Config
This is a legacy function, superseded by the Width and Height methods for global resources, page resources, and remote resources. See the image processing section for details.
{{ $ic := images.Config "/static/images/a.jpg" }}
{{ $ic.Width }} → 600 (int)
{{ $ic.Height }} → 400 (int)Supported image formats include AVIF, BMP, GIF, HEIC, HEIF, JPEG, PNG, TIFF, and WebP.
Last updated:
February 27, 2026
:
content: Miscellaneous udpates for v0.157.0 (35da1aa3c)
Improve this page