dimensions::fitWidthAndHeight

Recalculates the dimensions by the width and height

dimensions::fitWidthAndHeight($width, $height, $force = false)

Parameters

$width (int)
the max height
$height (int)
the max width

Return values

object