Crop image keeping the proportion

How can we use the crop function to make a proportional thumbnail?

$image->crop(300) makes a square, and I would like the function to make the height proportional to the original format.

thank you

1 Like

If you use resize() instead of crop() the proportion of the image is preserved.

1 Like

perfect as usual! thanks

I ended up manually cropping massive images in snaggit. This is pretty cool. Thank you.