Mac – How to Automate Cropping Images

automatorgraphicsimage editingmac

Is there any way to automate cropping images on Mac? (Not the whole file, but part of the file.)

I've tried this with Automator but the cropping function just makes the whole image smaller instead of chopping the part that I don't want off of the image.

Best Answer

You may use ImageMagick in order to crop from command line. That way you may include the command inside an Applescript, or call the command directly from terminal.

You can install it following these instructions and then you crop all images inside a folder, given:

convert '*.jpg' -crop 120x120+10+5 thumbnail%03d.png

where 120x120 is the resulting size and 10+5 is the offset (10 pixels width and 5 pixels height).