I need to perform batch cropping to approximately 3000 images. Each image is for a different item.
What I need is a crop tool that can define the item from the background and add specific amount of pixels to the top, bottom, right and left of it.
For example, see the image below. Can I use Automator?
Best Answer
You can use Imagemagick, available on Homebrew.
The image is trimmed using
-trim
operation which removes the border from the image.http://www.imagemagick.org/script/command-line-options.php
A
+repage
is performed on the virtual canvas to ‘flatten’ the crop.The
-border
is added, in White.