PHP Classes

GIF Transparency Does not Work

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  GIF Transparency Does not Work  >  (Un) Subscribe thread alerts  
Subject:GIF Transparency Does not Work
Summary:GIF Transparency Does not Work
Messages:6
Author:Vlad Tanasescu
Date:2008-07-16 00:33:09
Update:2008-11-04 06:22:41
 

  1. GIF Transparency Does not Work   Reply   Report abuse  
Picture of Vlad Tanasescu Vlad Tanasescu - 2008-07-16 00:33:09
Congratulation for the great class!

It was easy to install, thanks to your instructions, and worked immediately, without any hassle.

However, the only thing I didn't manage to do is set the transparence. My original files have transparency, but not the result.

I have tried several versions of the class, including the one on gifs.hu which is called £.0.

The transparent colour is black (0,0,0), the files are:

services.tagopedia.info/text/frames ...
services.tagopedia.info/text/frames ...
services.tagopedia.info/text/frames ...
services.tagopedia.info/text/frames ...
services.tagopedia.info/text/frames ...

and the resulting (non transparent file) is:

services.tagopedia.info/text/frames ...

I would be very grateful if you could help. Many thanks in advance!

Regards
V

  2. Re: GIF Transparency Does not Work   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-09-24 21:01:52 - In reply to message 1 from Vlad Tanasescu
Seems to be you used the one of the old verions, try out the last version of GIFEncoder. (V3.0)

  3. Re: GIF Transparency Does not Work   Reply   Report abuse  
Picture of steve steve - 2008-10-23 10:53:13 - In reply to message 2 from László Zsidi
thats not the problem! the problem is the frame which is just transparent. insert a black pixel in a corner and it works... maybe this can be fixed in the new version?

  4. Re: GIF Transparency Does not Work   Reply   Report abuse  
Picture of Timur Timur - 2008-11-01 21:27:10 - In reply to message 2 from László Zsidi
I am using the last version, but there is a very strange thingy - transparancy does not work for the binary mode:


$gif = new GIFEncoder (
$frames,
$framed,
0,
2,
0, 0, 0,
"url"
);

this one works, but as soon as I generate images as binary and set:

$gif = new GIFEncoder (
$frames,
$framed,
0,
2,
0, 0, 0,
"bin"
);

it is not working. The script works just fine... but no transparancy :(. Any ideas?

  5. Re: GIF Transparency Does not Work   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-11-04 06:03:25 - In reply to message 4 from Timur
unfortunately, seems like that tranparency problem is a popular problem:(
i will revise this...

  6. Re: GIF Transparency Does not Work   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-11-04 06:22:41 - In reply to message 5 from László Zsidi
gifs.hu site has been closed temporary, i will reopen the site on a new server with new versions of GIFDecoder and encoder classes.
i feel that classes are good but not perfect maybe the classes have some problems yet.
please, if you have any problem ( except transparency problem ) then you write me an email ( zsidi.laszlo@chello.hu ) and i will try to resolve it.
i will write here when my site i reopened, and be ready to download the new version of GIFEncoder. ( i hope without errors )