Sorry, we don't support your browser.  Install a modern browser

Crop: add ratio option

Especially now with the built in focus crop it would be very handy to not having to calculate the height in srcsets for all given widths but to be able to just define a crop-ratio:

$image->srcset('default', ['ratio' => 16/9])

That would be nice in the crop method too:

$image->crop(800, null, ['ratio' => 16/9])

2 years ago