Imagemagick Batch Processing

From Tomelec
Revision as of 10:28, 2 September 2013 by Tom (talk | contribs) (Created page with "[http://www.imagemagick.org Imagemagick] provides powerful tools for image manipulation. These can be easily automated in small shell scripts or command lines. =Shellscript batc...")

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Imagemagick provides powerful tools for image manipulation. These can be easily automated in small shell scripts or command lines.

Shellscript batch processing

Scale a bunch of photos

This scales all .JPG files in the directory ../mypics to 2048x1536 pixels. Note that the file extension (.JPG) is case sensitive and will not match .jpg files.

for file in ../mypics/*.JPG; do echo $file; convert "$file" -scale 2048x1536 -quality 85 `basename "$file"`; done