how to intelligently place a crop box
June 27, 2012 3:55 PM Subscribe
What command line tool should I be looking at for this slightly-intelligent batch image processing task?
posted by brightghost to computers & internet (4 answers total) 1 user marked this as a favorite
I have a large collection of screenshots, all which contain the same element but in different positions, and I want to do a batch action to crop the relevant area from each. This region of the screen obviously contains different content in each image, but could be located by a few unique, static graphic elements within it, so I'm thinking of locating the particular graphic element in each by comparing it to a reference image, then using that element's position as the origin to draw a crop box. I'm sure there's some tool that can do this; I've looked through the ImageMagick docs and am not seeing this capability.
I'm asking for a command line utility only because I suspect that's where I'm most likely to find such a tool and because it would be easy to use for batch operations, but I'm on MacOS and would be happy to hear any other suggestions.