crop

Signature
x | crop(width=?, height=?, format=?, quality=?, filter=?, anchor=?, spec=?)

Crops to width×height at anchor.

Arguments#

ArgumentTypeRequired
widthintno
heightintno
formatstringno
qualityintno
filterstringno
anchorstringno
specstringno

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.

    Type to search titles, headings and text.