Skip to content

Instantly share code, notes, and snippets.

@drakmail
Created October 29, 2012 15:52
Show Gist options
  • Save drakmail/3974324 to your computer and use it in GitHub Desktop.
Save drakmail/3974324 to your computer and use it in GitHub Desktop.
remove white background with imagemagick
convert "$1" -bordercolor white -border 1x1 \
-alpha set -channel RGBA -fuzz 20% \
-fill none -floodfill +0+0 white \
-shave 1x1 $2
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment