white background -> transparent background
white background -> transparent background
Is it possible to use IM to transform the white background of a PNG image to transparent? The foreground material is black.
-
- Posts: 12159
- Joined: 2010-01-23T23:01:33-07:00
- Authentication code: 1151
- Location: England, UK
Re: white background -> transparent background
convert in.png -transparent white out.png
snibgo's IM pages: im.snibgo.com
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: white background -> transparent background
However if your edges are not pure white you will get a lot of problems.
Background removal is no easy task, especially without and example.
For more information see IM Examples, Masking, Background Removal
http://www.imagemagick.org/Usage/masking/#bg_remove
It starts simple and gets more complex as needed.
Background removal is no easy task, especially without and example.
For more information see IM Examples, Masking, Background Removal
http://www.imagemagick.org/Usage/masking/#bg_remove
It starts simple and gets more complex as needed.
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/