EDIT

Resize

x

Resizes and image to the provided height & width.

x

/mountains;

resize(

  • width 200
  • height 200
  • mode ResizeMode
  • anchor CropAnchor

)

.png

x
x

Options

The target width of the output canvas

The target height of the output canvas

The mode used to resize the image

  • Fits the image within the specified dimensions without upscaling or stretching
  • Crops the image to fit within the specified dimensions. Defaults to center. Specify an anchor to override.
  • Crops the image to fit the provided dimensions.
  • Pads the image to fit within the provided dimensions. Combine with a background filter to specify the backend color.
  • Scales the image to the exact dimensions

The anchor used to align the image in crop mode

  • Anchor the image to the top when cropping.
  • Anchor the image to the right when cropping.
  • Anchor the image to the bottom when cropping.
  • Anchor the image to the left when cropping.
  • Anchor the image to the center when cropping.
+ Article + Code + Content + Data