Skip to content

Instantly share code, notes, and snippets.

@johno
Created October 25, 2012 15:50
Show Gist options
  • Save johno/3953555 to your computer and use it in GitHub Desktop.
Save johno/3953555 to your computer and use it in GitHub Desktop.
The power of ImageMagick...
for file in $newdir/* ; do
convert $file -quantize GRAY -negate `echo $file | sed 's/.png/-white.png/'`
convert `echo $file | sed 's/.png/-white.png/'` -fuzz 70% -fill '#0398d6' -opaque white `echo $file | sed 's/.png/-blue.png/'`
done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment