How can I resize a batch of images using Automator, so that all images will have a fixed height, e.g. I want to resize all images to be 60px high while width can be anything.

link|improve this question
Do you necessarily have to use Automator? – slhck May 12 '11 at 17:45
nope - on second thought I guess I should be using imagemagick... – LK. May 12 '11 at 18:10
That's what I'd have said now :) – slhck May 12 '11 at 18:10
feedback

2 Answers

There's no way to specify maximum width or height separately in Automator:

automator resize width


Many actions in Preview can be applied for multiple items:

preview batch resize images


Using sips: sips --resampleWidth <width> <files>.

However stuff like How do you use "sips" at the terminal to resize an image, without upscaling? - Super User soon gets more complex than it should be.

So really convert or mogrify is the way to go.

link|improve this answer
Now, a bash two-liner more difficult than getting imagemagick set up and having it perform the desired action? Hard to believe ;-) – Daniel Beck May 13 '11 at 8:20
@DanielBeck Well, sudo port install imagemagick # Wait for half an hour while it's installing dependencies; mogrify -resize x80\> *.png. – Lri May 13 '11 at 18:03
feedback

Use (install) the Action "Save for Web" available in http://junecloud.com/software/mac/junecloud-automator-actions.html.

Worked for me :).

You can specify a maximum with and Height for the image.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.