mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-24 21:56:05 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,18 +3,16 @@ title: images.Config
|
||||
description: Returns an image.Config structure from the image at the specified path, relative to the working directory.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
aliases: []
|
||||
related: []
|
||||
returnType: image.Config
|
||||
signatures: [images.Config PATH]
|
||||
params:
|
||||
functions_and_methods:
|
||||
aliases: []
|
||||
returnType: image.Config
|
||||
signatures: [images.Config PATH]
|
||||
aliases: [/functions/imageconfig]
|
||||
---
|
||||
|
||||
See [image processing] for an overview of Hugo's image pipeline.
|
||||
|
||||
[image processing]: /content-management/image-processing/
|
||||
|
||||
```go-html-template
|
||||
{{ $ic := images.Config "/static/images/a.jpg" }}
|
||||
|
||||
@@ -24,10 +22,9 @@ See [image processing] for an overview of Hugo's image pipeline.
|
||||
|
||||
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](g), [page resources](g), and [remote resources](g). See the [image processing] section for details.
|
||||
> [!note]
|
||||
> This is a legacy function, superseded by the [`Width`] and [`Height`] methods for [global resources](g), [page resources](g), and [remote resources](g). See the [image processing] section for details.
|
||||
|
||||
[`Width`]: /methods/resource/width/
|
||||
[`Height`]: /methods/resource/height/
|
||||
[`Width`]: /methods/resource/width/
|
||||
[image processing]: /content-management/image-processing/
|
||||
{{% /note %}}
|
||||
|
Reference in New Issue
Block a user