resize
x | resize(width=?, height=?, format=?, quality=?, filter=?, anchor=?, spec=?)Resizes to width and/or height (or a spec string in Go’s syntax, e.g. "600x400 webp q75").
Arguments#
| Argument | Type | Required |
|---|---|---|
width | int | no |
height | int | no |
format | string | no |
quality | int | no |
filter | string | no |
anchor | string | no |
spec | string | no |
Details#
- Kind: Filter, implemented by fugo.
- Available in: every kind of template: layouts, partials, shortcodes and render hooks.
- Output: escaped like any value, unless marked
safe. - Site-bound: reads the site or the page being rendered; in a component, pass
page=or declare@__nh.