need to auto crop
Posted: 2010-09-10T18:05:11-07:00
I have a pretty specific need to mass-process a ton of images in a directory tree. The major problem I'm having is that the source images have, for the most part, different aspect ratios. Why? People did a bunch of silly freehand crops on perfectly good images! Anyway, I would like to batch process as follows:
Crop the source images such that each outputted image will have an aspect ratio of either 4:3 if landscape or 3:4 if portrait losing the minimum number of pixels in the process. I understand that there is no way to accurately know what would make the most pleasing crop from a gravity perspective (starting from the top, left, right, etc.), but I don't care given the large number of photos I'm dealing with in this scenario.
Suggestions are greatly appreciated.
Crop the source images such that each outputted image will have an aspect ratio of either 4:3 if landscape or 3:4 if portrait losing the minimum number of pixels in the process. I understand that there is no way to accurately know what would make the most pleasing crop from a gravity perspective (starting from the top, left, right, etc.), but I don't care given the large number of photos I'm dealing with in this scenario.
Suggestions are greatly appreciated.