Skip to content

Commit

Permalink
Update resize.md (#166)
Browse files Browse the repository at this point in the history
  • Loading branch information
bvfbarten authored Nov 4, 2023
1 parent 0b18531 commit 1e36ffb
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion markup/filters/resize.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,13 @@ This means that the actual work of resizing the image is delayed until the brows
The filter accepts three parameters: `| resize(int $width [, int $height , array $options])`.

See the [image resizing docs](../../docs/services/image-resizing#available-parameters) for more information on the parameters.
One of the options available in the $options array is extension. This allows converting images from one file type to another.

```twig
<img src="{{ 'banner.jpg' | media | resize(1920, 1080, , {'extension' : 'png'}) }}" />
```

See the [image resizing docs](../../docs/services/image-resizing#available-parameters) for more information on other parameters.

- [List of locations images can be resized from](../../docs/services/image-resizing#available-sources)

Expand Down

0 comments on commit 1e36ffb

Please sign in to comment.