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.


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).


If you have Xcode installed, you could download and compile and install (via Automator's import menu) Convert Images to Letterbox Format (completed) from Apple's developer library. That action crops without resizing. Look for the "Download Sample Code" at the top-left of the linked page

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .