PHP Classes

Background turns Black

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Background turns Black  >  (Un) Subscribe thread alerts  
Subject:Background turns Black
Summary:2 transparent gifs, after using GIFEncoder, the bg is black
Author:szymon siewior
Date:2007-08-22 13:29:42

  1. Background turns Black   Reply   Report abuse  
Picture of szymon siewior szymon siewior - 2007-08-22 13:29:42
I hope you could help me. I have two images,
Both are transparent.

When I put it through GIFEncoder with color values 0,0,0. The animated gif has black background:

I tried 255,255,255 and also -1,-1,-1, the result is the same.

When I use the function imagecolorat($img,0,0) I get 127 as the result, I also tried that in the Encoder, still nothing. I really don't know what else to do. Please help.

Szymon Siewior