mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-26 22:04:32 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,18 +3,14 @@ title: Process
|
||||
description: Applicable to images, returns an image resource processed with the given specification.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/resource/Crop
|
||||
- methods/resource/Fit
|
||||
- methods/resource/Fill
|
||||
- methods/resource/Resize
|
||||
- functions/images/Process
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Process SPEC]
|
||||
toc: true
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Process SPEC]
|
||||
---
|
||||
|
||||
{{% include "/_common/methods/resource/global-page-remote-resources.md" %}}
|
||||
|
||||
Process an image with the given specification. The specification can contain an optional action, one of `crop`, `fill`, `fit`, or `resize`. This means that you can use this method instead of [`Crop`], [`Fill`], [`Fit`], or [`Resize`].
|
||||
|
||||
```go-html-template
|
||||
@@ -37,9 +33,7 @@ You can also use this method to apply simple transformations such as rotation an
|
||||
|
||||
The `Process` method is also available as a filter, which is more effective if you need to apply multiple filters to an image. See [`images.Process`].
|
||||
|
||||
{{% include "methods/resource/_common/global-page-remote-resources.md" %}}
|
||||
|
||||
{{% include "/methods/resource/_common/processing-spec.md" %}}
|
||||
{{% include "/_common/methods/resource/processing-spec.md" %}}
|
||||
|
||||
## Example
|
||||
|
||||
|
Reference in New Issue
Block a user