thebuzzmedia/imgscalr — pull request #77 by leon (2012-09-26 06:17:38+00:00)
Title: Added a new mode called CROP

Will fit the image within the specified width and height.

centering and cropping everything that sticks out.
which will only be left and right or top and bottom.

I've also added some tests, but since we can't get the offset that was used to crop the image, it's hard to verify in code that the crop was done correctly.