resizeExact

Resize image to exact dimensions ignoring aspect ratio. Useful if you want to force exact width and height.

resizeExact ( ImageInterface &$image, int $newWidth, int $newHeight ): EditorInterface 
Parameters
image

Instance of Image.

newWidth

Width in pixels.

newHeight

Height in pixels.

Returns
An instance of Editor.