Computer Hope

Software => Computer software => Topic started by: Geek-9pm on July 06, 2017, 08:51:41 PM

Title: Problem with GIF background color.
Post by: Geek-9pm on July 06, 2017, 08:51:41 PM
This is a problem I have never resolved. I can make a GIF images with a white background. No problem. Next  I would like ti to have a transparent background. That works, just make pure white the ttransparency color and make sure other areas are not pute white. That works.
Fine. Now the problem. In wome places I can post my GIF image and it looks good. But sometimes the tarnsparacy does not work and the background is black. I then cehck and find taht somehow my trasparent white backgroup turned black.
But the editor says that black is  the tansparency color. How did that happen?
Who changed by white to black? Why? How? can this be avoided?
Hee is my GIF with a transparent  white background.
(http://geek9pm.club/big_kohn_bird.gif)
So, now it looks like it should. What am I not understanding? :-\
Title: Re: Problem with GIF background color.
Post by: BC_Programmer on July 06, 2017, 09:03:50 PM
If you are uploading the image elsewhere then it is probably being post-processed in some fashion, such as using the PHP ImageMagick library. You have to do a few things properly to have transparent GIFs work and it might not be something that is well-tested on the site(s) in question.
Title: Re: Problem with GIF background color.
Post by: Geek-9pm on July 07, 2017, 10:25:33 AM
Thanks BC,
The sie was stackoverflow. I have never seen a site so hard to join. If you can figure it out, they don't want you! Anyway, I now have the GIF looking the way it shoyuld. I edited the GIF and reduced the size and used a different format. Acualy, I even forgot what I did, too many permutations. Anyway, it now looks better.'
Oh, now I recall.   ;D   I gave up on a solid transparent background. I used aswatch I call forest for the background and no transparancy. That wokrs!
Here is the better Bird:
(http://geek9pm.club/CH/geek-9pm.gif)
Thansk for helping.

Like the bard said, to GIF or not to GIF, or is it better to JPG, that is the question.
Title: Re: Problem with GIF background color.
Post by: BC_Programmer on July 07, 2017, 05:49:31 PM
You don't want to get me started ranting about Stack Overflow :P


I seem to have found what seems to be the original image for the Toucan you are using there and made a 256-colour transparent PNG out of it. The main difference seems to be the branch and the feet.
(http://bc-programming.com/misc/Toucan_small.png)

It's not as heavily processed so I think it looks a bit better. Interestingly, it is actually smaller than a GIF as well.
Title: Re: Problem with GIF background color.
Post by: Geek-9pm on July 07, 2017, 06:49:39 PM
You found the Toucan.  :)
Thank you, maybe I should just use the original. I got deep into making the branch look better. By you are right, it looks better in ist simple form. I guess I  coul no be a graphic designer. I just don't have the eye for it.
Here on CH, shoulde I use the nice Toucan  it instead of my present avitar?  :)