mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-29 22:29:56 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -1,20 +1,16 @@
|
||||
---
|
||||
title: Fill
|
||||
description: Applicable to images, returns an image resource cropped and resized to the given dimensions.
|
||||
description: Applicable to images, returns an image resource cropped and resized to the given dimensions.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/resource/Crop
|
||||
- methods/resource/Fit
|
||||
- methods/resource/Resize
|
||||
- methods/resource/Process
|
||||
- functions/images/Process
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Fill SPEC]
|
||||
toc: true
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Fill SPEC]
|
||||
---
|
||||
|
||||
{{% include "/_common/methods/resource/global-page-remote-resources.md" %}}
|
||||
|
||||
Crop and resize an image to match the given dimensions. You must provide both width and height.
|
||||
|
||||
```go-html-template
|
||||
@@ -25,9 +21,7 @@ Crop and resize an image to match the given dimensions. You must provide both wi
|
||||
{{ end }}
|
||||
```
|
||||
|
||||
{{% 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