dimensions::fitWidth($fit, $force = false)
Recalculates the width and height to fit the given width
-
$width (int)
the max width -
$force (boolean)
If true, the dimensions will be upscaled to fit the width if smaller -
return (object)
returns this object with recalculated dimensions