Greetings,
I have a gif image that I would like to make the white bg transparent. How do I do this in Image Majick?
Thanks!
How do I make background transparent?
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: How do I make background transparent?
convert input.gif -transparent white output.gif
assuming the background is pure 100% white
assuming the background is pure 100% white
- anthony
- Posts: 8883
- Joined: 2004-05-31T19:27:03-07:00
- Authentication code: 8675308
- Location: Brisbane, Australia
Re: How do I make background transparent?
For more difficult background to transparency conversions..
Transparency Masking an Image
http://imagemagick.org/Usage/channels/#mask_creation
Transparency Masking an Image
http://imagemagick.org/Usage/channels/#mask_creation
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
https://imagemagick.org/Usage/
Re: How do I make background transparent?
I have this error when running this command :fmw42 wrote:convert input.gif -transparent white output.gif
assuming the background is pure 100% white

What is the matter?
May be I have installed a wrong version of ImageMagick ?

Re: How do I make background transparent?
Can not read Russian but assume that the problem is that the convert.exe that is being used is the one built into Windows not IM the convert.exe
I think the work around is to rename the IM convert.exe to somethng like IM_convert.exe and use IM_convert instead of convert in your camand. I wonder if you could add the path to the IM convert comand e.g. c:/program files/imagemagick folder/convert
I think the work around is to rename the IM convert.exe to somethng like IM_convert.exe and use IM_convert instead of convert in your camand. I wonder if you could add the path to the IM convert comand e.g. c:/program files/imagemagick folder/convert
Re: How do I make background transparent?
I can translate (from Russian) texts into my error window (above) :Bonzo wrote:Can not read Russian
Window title : "Application error".
Text after red cross : "Application initialization error (0xc0150002). Press OK to close application".
No, it is not.Bonzo wrote:but assume that the problem is that the convert.exe that is being used is the one built into Windows not IM the convert.exe
I run my command (convert.exe with parameters) from "Far manager" (a file manager like Norton commander) in curent folder C:\ImageMagick>