Merge commit '5be51ac3db225d5df501ed1fa1499c41d97dbf65'

This commit is contained in:
Bjørn Erik Pedersen
2025-04-10 13:04:51 +02:00
987 changed files with 12379 additions and 14083 deletions

View File

@@ -3,18 +3,14 @@ title: Crop
description: Applicable to images, returns an image resource cropped to the given dimensions without resizing.
categories: []
keywords: []
action:
related:
- methods/resource/Fit
- methods/resource/Fill
- methods/resource/Resize
- methods/resource/Process
- functions/images/Process
returnType: images.ImageResource
signatures: [RESOURCE.Crop SPEC]
toc: true
params:
functions_and_methods:
returnType: images.ImageResource
signatures: [RESOURCE.Crop SPEC]
---
{{% include "/_common/methods/resource/global-page-remote-resources.md" %}}
Crop an image to match the given dimensions without resizing. You must provide both width and height.
```go-html-template
@@ -25,9 +21,7 @@ Crop an image to match the given dimensions without resizing. You must provide b
{{ 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