resize
Wrapper function for the resizeXXX family of functions. Resize an image to a given width, height and mode.
resize ( ImageInterface &$image, int $newWidth, int $newHeight, string $mode = 'fit' ): EditorInterface
Parameters
image
Instance of Image.
newWidth
Width in pixels.
newHeight
Height in pixels.
mode
Resize mode. Possible values: "exact", "exactHeight", "exactWidth", "fill", "fit".