Skip to content

awhite.ca

Cambridge area web developer

Tag Archives: brew

Resize all images in a folder with imageworsener

I used to use imagemagick for resizing in the command line, but imageworsener has a much cleaner syntax. Use this to resize the height all pngs to 33 pixels: for i in $( ls *.png); do imagew -height 33 $i re_$i; done If you’re on Mac OS X, you can install imageworsener through Homebrew.

Posted byAndrewOctober 25, 2012July 3, 2013Posted inCode SnippetTags: brew, command line, one liner
awhite.ca, Proudly powered by WordPress.