PHP Classes

How to use GIFDecoder.class.php

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  How to use GIFDecoder.class.php  >  (Un) Subscribe thread alerts  
Subject:How to use GIFDecoder.class.php
Summary:help please
Messages:30
Author:qianxiaoqian
Date:2007-03-23 10:31:02
Update:2012-10-23 12:51:18
 
  1 - 10   11 - 20   21 - 30  

  21. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Dady Dady - 2008-03-19 12:40:08 - In reply to message 20 from László Zsidi
Hello László Zsidi,

First of all, thank you for your superb class !

I have a little problem with GIF decoder, during the extraction of a frame, transparency native GIF is not retained.

Is it possible to solve this problem ?

Thank you

  22. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Stefan Schärmeli Stefan Schärmeli - 2009-08-14 08:28:55 - In reply to message 21 from Dady
Hi there. The tool sound nice, but the quality is not that good, try out the spillter with this gif:

livesystems.ch/media/animated.gif

any idea?

  23. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Sean Cannon Sean Cannon - 2010-03-17 00:54:36 - In reply to message 2 from László Zsidi
Hi - thanks for writing this class!

My issue is that while it works, the images are really poor quality when they're split. For example, take a 5 second a movie sequence which looks fine online as an animated gif. I download it to my desktop, upload it through my website and when the GIFDecoder splits it, all the images are black and white, and all noisy. I tried a cartoon animated gif which had a white background, and when I decoded it the background turned blue.

Any ideas? I'm using version 2.0 (Updated at 2009. 06. 23. '06.00.AM').

Thanks!

--Sean

  24. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Ulan Zhandos Ulanuly Ulan Zhandos Ulanuly - 2010-06-11 19:24:36 - In reply to message 20 from László Zsidi
Thank you a lot! Really exciting class! Thank you!

  25. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Amarakeerthi Amarakeerthi - 2010-08-13 08:28:14 - In reply to message 24 from Ulan Zhandos Ulanuly
I don't know whether this is the right place to ask this question. Sorry if I am in the wrong place. I uploaded the sample as it is. But I am getting following error when run Example.php

GIFEncoder V2.05: 13 Source is not a GIF image!.

Any ideas?

  26. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2010-08-14 06:28:44 - In reply to message 25 from Amarakeerthi
To be sure that the source images are in gif format.
Gifencoder accept gif source images only.

  27. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Amarakeerthi Amarakeerthi - 2010-08-16 06:42:33 - In reply to message 26 from László Zsidi
Dear László,

Thank you. It works great. I came across a small problem. when I make the animated gif with photos, areas entirely black becomes entirely white.

Should I save gif frames in a particular gif format?

Thanks

  28. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Zim Zum Zim Zum - 2011-03-25 12:14:20 - In reply to message 1 from qianxiaoqian
Just wanted to post the solution to a problem that took me quite a few hours to solve: I wanted to create an animated GIF where one frame was dynamically generated by PHP with custom text on it. This would not work because even though I used

header("Content-Disposition: inline; filename=filename.gif");

to set the correct filename format, it was still not recognized as a gif file (GIFDecoder returned "Source is not a GIF image").

The solution: I managed to solve the problem by changing the GIFEncoder source type to 'bin' instead or 'url' and loading the image content using 'file_get_contents'. After I finally figured out a space in the GET variables of the URL was causing the 'false' I kept getting I added 'urlencode' to those variables and it all worked like charm! :)

  29. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Gabriel Lamounier Gabriel Lamounier - 2012-06-22 20:23:39 - In reply to message 2 from László Zsidi
I used this code but it isn't working.
I have this message:
Notice: Uninitialized string offset: 10 in C:\Arquivos de programas\EasyPHP-5.3.7RC5\www\gif\GIFDecoder.class.php on line 166

And the count of the array always return 0.
Can u help me?

  30. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Nurmat Zhunusoff Nurmat Zhunusoff - 2012-10-23 12:51:18 - In reply to message 29 from Gabriel Lamounier
it seems gifdecoder incorrectly split gif into frames there are wrong order of splitted frames. are there any solution of this problem?

 
  1 - 10   11 - 20   21 - 30