Last active
August 30, 2017 16:07
-
-
Save danielef/69630854bd7013797e375d60f137875c to your computer and use it in GitHub Desktop.
ImageMagick : Turn color to transparent
This file contains hidden or 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
# From http://www.imagemagick.org/discourse-server/viewtopic.php?t=12619 | |
# Turn white background image to transparent | |
convert image-old.png -transparent white image-new.png | |
# not perfectly white (aliasing) with fuzz percentage | |
convert image-old.png -fuzz 95% -transparent white image-new.png |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment