Resize the image by preserving aspect ratio. By default, it will keep the image inside the maxWidth and maxHeight. Passing useAsMinimum will make the smaller dimension equal to the maximum corresponding dimension
Signature
public function resizeRatio(int
$width,
int
$height,
[boolean
$useAsMinimum = false] )
Parameters
$width
—
int
$height
—
int
$useAsMinimum
—
boolean
If true, image will be sized outside of these dimensions. If false (default) image will be sized inside these dimensions.