mirror of
https://github.com/gohugoio/hugo.git
synced 2025-08-28 22:19:59 +02:00
Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'
This commit is contained in:
@@ -3,17 +3,14 @@ title: Resize
|
||||
description: Applicable to images, returns an image resource resized to the given width and/or height.
|
||||
categories: []
|
||||
keywords: []
|
||||
action:
|
||||
related:
|
||||
- methods/resource/Crop
|
||||
- methods/resource/Fit
|
||||
- methods/resource/Fill
|
||||
- methods/resource/Process
|
||||
- functions/images/Process
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Resize SPEC]
|
||||
params:
|
||||
functions_and_methods:
|
||||
returnType: images.ImageResource
|
||||
signatures: [RESOURCE.Resize SPEC]
|
||||
---
|
||||
|
||||
{{% include "/_common/methods/resource/global-page-remote-resources.md" %}}
|
||||
|
||||
Resize an image to the given width and/or height.
|
||||
|
||||
If you specify both width and height, the resulting image will be disproportionally scaled unless the original image has the same aspect ratio.
|
||||
@@ -26,9 +23,7 @@ If you specify both width and height, the resulting image will be disproportiona
|
||||
{{ 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