Welcome guest. Before posting on our computer help forum, you must register. Click here it's easy and free.

Author Topic: GIF Image Trasbparancy. Use whitem bit black.  (Read 2440 times)

0 Members and 1 Guest are viewing this topic.

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
GIF Image Trasbparancy. Use whitem bit black.
« 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?
« Last Edit: February 13, 2019, 01:12:47 PM by Geek-9pm »

BC_Programmer


    Mastermind
  • Typing is no substitute for thinking.
  • Thanked: 1140
    • Yes
    • Yes
    • BC-Programming.com
  • Certifications: List
  • Computer: Specs
  • Experience: Beginner
  • OS: Windows 11
Re: GID Image Trasbparancy. Use whitem bit black.
« Reply #1 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.
I was trying to dereference Null Pointers before it was cool.

Geek-9pm

    Topic Starter

    Mastermind
  • Geek After Dark
  • Thanked: 1026
    • Gekk9pm bnlog
  • Certifications: List
  • Computer: Specs
  • Experience: Expert
  • OS: Windows 10
Re: GIF Image Trasbparancy. Use whitem bit black.
« Reply #2 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)