public static resize ( string | resource | Imagine\Image\ImageInterface $image, integer $width, integer $height, boolean $keepAspectRatio = true, boolean $allowUpscaling = false ) : Imagine\Image\ImageInterface | ||
$image | string | resource | Imagine\Image\ImageInterface | either ImageInterface, resource or a string containing file path |
$width | integer | the width in pixels |
$height | integer | the height in pixels |
$keepAspectRatio | boolean | should the image keep aspect ratio |
$allowUpscaling | boolean | should the image be upscaled if needed |
return | Imagine\Image\ImageInterface |