public resize ( grafika\ImageInterface &$image, integer $newWidth, integer $newHeight, string $mode = 'fit' ) : grafika\EditorInterface | ||
$image | grafika\ImageInterface | Instance of Image. |
$newWidth | integer | Width in pixels. |
$newHeight | integer | Height in pixels. |
$mode | string | Resize mode. Possible values: "exact", "exactHeight", "exactWidth", "fill", "fit". |
return | grafika\EditorInterface | An instance of Editor. |