Skip to content

awhite.ca

Cambridge area web developer

Resize all images in a folder with imageworsener

Posted byAndrew October 25, 2012July 3, 2013

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

Post navigation

Previous Post Previous post:
Add a class to the first and last items of a WordPress menu
Next Post Next post:
Sharing content on social networks without Javascript
awhite.ca, Proudly powered by WordPress.