Skip to content

Image Filters

A couple of filters for controlling images are included.

Size

Controls the size of the images.

Width

Sets the width of an image.

Options

  • width: The width of the image.
  • unit: The unit to use. Available options: mm (millimeters), cm (centimeters), in (inches), pt (points). Defaults to mm.

Examples

{{ coworker.picture | width(250) }} (sets width to 250 millimeters)

{{ coworker.picture | width(200, "mm") }} (sets width to 200 millimeters)

{{ coworker.picture | width(15, "cm") }} (sets width to 15 centimeters)

{{ coworker.picture | width(3, "in") }} (sets width to 3 inches)

{{ coworker.picture | width(140, "pt") }} (sets width to 140 points)

Height

Sets the heigh of an image.

Options

  • height: The height of the image.
  • unit: The unit to use. Available options: mm (millimeters), cm (centimeters), in (inches), pt (points). Defaults to mm.

Examples

{{ coworker.picture | height(250) }} (sets height to 250 millimeters)

{{ coworker.picture | height(200, "mm") }} (sets height to 200 millimeters)

{{ coworker.picture | height(15, "cm") }} (sets height to 15 centimeters)

{{ coworker.picture | height(3, "in") }} (sets height to 3 inches)

{{ coworker.picture | height(140, "pt") }} (sets height to 140 points)