Computer Hope

Software => Computer software => Topic started by: Geek-9pm on February 13, 2019, 12:51:27 PM

Title: GIF Image Trasbparancy. Use whitem bit black.
Post by: Geek-9pm on February 13, 2019, 12:51:27 PM
I have had this issue for years. I must be ignorant about GIF transparency. I set white as the transparency color and then somehow it goes to black.

Do you understand whet I mean?

My photo editor lets me pick a color for transparency. I pick the white background.
But later on it gets swapped to black instead. Why?
Some features in windows do not honor the transparency and show my image on a black background, which not what I intended. Why?

What am I doing wrong? The only thing that works predictable is to not use transparency at all.That way at least the white stays white.  ;D

Is there a real solution?
Title: Re: GID Image Trasbparancy. Use whitem bit black.
Post by: BC_Programmer on February 13, 2019, 01:08:28 PM
Typically a bright magenta is used as the transparent color in a GIF.

If a colour is transparent than the background shows through. But that relies on whatever is drawing the GIF to be aware of this. Some software may be simply drawing the image onto a new image "canvas" which would usually be zero'd out (black) which would result in transparent areas being black.
Title: Re: GIF Image Trasbparancy. Use whitem bit black.
Post by: Geek-9pm on February 13, 2019, 01:14:11 PM
Thanks BC,
I will try that.  :)

UPDATE:
Yea! That works!   :o
 I set the background to withe and transparency to white and it works.  8)