Created
October 29, 2012 15:52
-
-
Save drakmail/3974324 to your computer and use it in GitHub Desktop.
remove white background with imagemagick
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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