resizeFill

Resize image to fill all the space in the given dimension. Excess parts are cropped.

resizeFill ( 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.