Page 1 of 1
How do I make background transparent?
Posted: 2008-02-17T11:15:33-07:00
by c5c5
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!
Re: How do I make background transparent?
Posted: 2008-02-17T19:32:57-07:00
by fmw42
convert input.gif -transparent white output.gif
assuming the background is pure 100% white
Re: How do I make background transparent?
Posted: 2008-02-23T21:32:08-07:00
by c5c5
Thank you. I will see if it works.
Re: How do I make background transparent?
Posted: 2008-02-28T18:34:51-07:00
by anthony
For more difficult background to transparency conversions..
Transparency Masking an Image
http://imagemagick.org/Usage/channels/#mask_creation
Re: How do I make background transparent?
Posted: 2010-09-17T07:50:06-07:00
by Oleg
fmw42 wrote:convert input.gif -transparent white output.gif
assuming the background is pure 100% white
I have this error when running this command :
What is the matter?
May be I have installed a wrong version of ImageMagick ?

Re: How do I make background transparent?
Posted: 2010-09-17T07:57:08-07:00
by Bonzo
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
Re: How do I make background transparent?
Posted: 2010-09-20T00:29:28-07:00
by Oleg
Bonzo wrote:Can not read Russian
I can translate (from Russian) texts into my error window (above) :
Window title : "Application error".
Text after red cross : "Application initialization error (0xc0150002). Press OK to close application".
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
No, it is not.
I run my command (convert.exe with parameters) from "Far manager" (a file manager like
Norton commander) in curent folder
C:\ImageMagick>