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
Messages:1
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
Hi,
I hope you could help me. I have two images,
1. http://img383.imageshack.us/img383/5650/truck117hy4.gif
2. http://img383.imageshack.us/img383/3319/truck17ar1.gif
Both are transparent.

When I put it through GIFEncoder with color values 0,0,0. The animated gif has black background: http://img383.imageshack.us/img383/3327/truckm17yx1.gif

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.


Sincerely,
Szymon Siewior