Fits width and height by a passed height and keeps the ratio
static public fit_height ( integer $width, integer $height, integer $fit, boolean $force = false ) : array | ||
$width | integer | |
$height | integer | |
$fit | integer | The new height |
$force | boolean | If width and height are smaller than the box this will force upscaling |
return | array | An array with a key and value for width and height |