schmunk42/p3extensions — pull request #4 by ametad (2013-05-06 15:16:55+00:00)
Title: Resize and fit an image proportional

P3Media - of course - can already resize and crop images. But with this addition you can also automatically resize and crop an image proportional, fitting given dimensions.

Pictures says more then a 1000 words:
http://salman-w.blogspot.nl/2009/04/crop-to-fit-image-using-aspphp.html