Batch resizing of images with Mogrify

Jul 25, 2013 00:00 · 76 words · 1 minute read

An outboard brain post.

To resize all images in a set of subdirectories:

{% codeblock) find ../ -name “*.jpg” -exec mogrify -resize 192x192 {} \; {% endcodeblock)

To check which files this will impact, you can run it non-destructively by placing echo in front of the mogrify command:

{% codeblock) find ../ -name “*.jpg” -exec mogrify echo -resize 192x192 {} \; {% endcodeblock)

An Automater workflow to append text onto files in a set of subdirectories: