Cropping Images

I’ve posted a class that pretty much does this on the forum, though it rescales the image first, then crops to get the proportions right.

Computationally cropping without resizing will not work most of the time. The computer has no way of knowing what the compositional elements of the photo are and is going to end up cutting through faces a lot of the time. By rescaling first you can avoid some of this problem, but the solution still isn’t as idea as having the user do the resize first in photoshop.

That said the class is small and touches on the basics of manipulating images using the built in imageMagick library, so it’s a good learning tool.