Skip to content

awhite.ca

Cambridge area web developer

Tag Archives: one liner

Resizing images in the terminal take two: sips

MacLife has an article on the scriptable images processing systems, or sips. sips is very powerful, but it also has a really simple syntax. To duplicate my one-liner for imageworsener, all you would need is: sips –resampleHeight 33 *.png

Posted byAndrewNovember 21, 2012July 3, 2013Posted inCode SnippetTags: command line, one liner

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.