mirror of
https://github.com/tiennm99/hugoDocs.git
synced 2026-10-15 06:16:06 +00:00
1.0 KiB
1.0 KiB
title, description, categories, keywords, params, aliases
| title | description | categories | keywords | params | aliases | ||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| images.Config | Returns an image.Config structure from the image at the specified path, relative to the working directory. |
|
|
See image processing for an overview of Hugo's image pipeline.
{{ $ic := images.Config "/static/images/a.jpg" }}
{{ $ic.Width }} → 600 (int)
{{ $ic.Height }} → 400 (int)
Supported image formats include GIF, JPEG, PNG, TIFF, and WebP.
{{< note >}}
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.
{{< /note >}}