Skip to content

Instantly share code, notes, and snippets.

@coyotte508
Created July 13, 2012 03:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save coyotte508/3102488 to your computer and use it in GitHub Desktop.
Save coyotte508/3102488 to your computer and use it in GitHub Desktop.
Removes background from RBY images
find . -name "*.png" -exec convert '{}' -bordercolor white -border 1x1 -fill none -draw 'matte 0,0 floodfill' -shave 1x1 '{}' \;
(since the images themselves contained white, a simple replace wouldn't have been good)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment