Scale image dimensions if they exceed the max image constraints.
public static getImageScale ( $width, $height, $maxImageWidth, $maxImageHeight ) : float | ||
$width | ||
$height | ||
$maxImageWidth | ||
$maxImageHeight | ||
return | float |
public static getImageScale ( $width, $height, $maxImageWidth, $maxImageHeight ) : float | ||
$width | ||
$height | ||
$maxImageWidth | ||
$maxImageHeight | ||
return | float |