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  

  11. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2007-07-04 22:36:58 - In reply to message 10 from László Zsidi
Excuse me, made a little modification for sourcecode of above example:
"$fp = fread ( fopen ( "test.gif", "rb" ), filesize ( "test.gif" ) );" instead of "$fp = fopen ( "test.gif", "rb", filesize ( "test.gif" ) );"


  12. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of eddy ammar eddy ammar - 2007-07-05 07:33:01 - In reply to message 11 from László Zsidi
Thanks so much László! I know a lot of people have been looking for this particular function now. It will comes as a great benefit for us.

Thanks again for you hard work László.

  13. How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Lynn Ooi Lynn Ooi - 2007-09-27 06:51:45 - In reply to message 2 from László Zsidi
Hello,

Is it possible for me to resize each frame using imagecopyresample? I tried to manipulate the frames but somehow the images turns out to b incorrect (image turns out to b lines and weird patterns). Is there anyway that i can resize the frames?

  14. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of T. A. Coban T. A. Coban - 2007-10-21 03:18:55 - In reply to message 13 from Lynn Ooi
Hi,

Is there a way to write some text over the frames and resample them so I can let the browser preview the animated gif with a text over the image while the original image will stay unedited.

I tried to create a dynamic image and fill this dynamic image with one of the frames but I was not able to do that. Has anyone any suggestions please ?

  15. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of Luc Luc - 2007-11-26 22:55:51 - In reply to message 14 from T. A. Coban
I would like to use images from memory instead of from disk.

It looks like it is possible when the paramter $GIF_mod in the constuctor equals to "bin". I tried that but I got the following error:

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

Has anyone succesfull implemented this class with gif files from memory? And can you post some sample code?

Thanks in advance!

  16. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2007-11-27 05:02:38 - In reply to message 15 from Luc
Hi,

You can use your static sources with "bin" flag:

$source [ 0 ] = "http://webserver/test/test.jpg";
$source [ 1 ] = "http://webserver/test/test1.gif";
$source [ 2 ]...

foreach ( $source as $src ) {
$im = imagecreatefromstring ( $src );
/* some dinamicaly effects or other */
ob_start ( );
imagegif ( $im );
$frames [ ] = ob_get_contents ( );
$framed [ ] = 10;
ob_end_clean ( );
imagedestroy ( $im );
}

  17. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of allad allad - 2007-12-29 18:36:15 - In reply to message 16 from László Zsidi
I used "GIFEncoder.class.php" for an animated gif,i got all the frames succesfully,but when i test theme for edition(draw text..),i can't merge theme with "GIFEncoder.class.php"=>'url' or 'bin' mode not works(frames data corrupted)!
Binary mode works only for the original frames!
Can you tell me why?
Thanks!

  18. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-01-01 15:41:40 - In reply to message 17 from allad
Hi,

First of all Happay New Year!:)
Please, send me your test images and main php file for review your problem.
jacoka@vipmail.hu

  19. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of C.J. C.J. - 2008-01-15 07:36:50 - In reply to message 18 from László Zsidi
Hey László,

I tried e-mailing the address above, but it bounced back.

I am using your Captcha01 code and it is great!

Can you please tell me how to make the black colors in the image another color?
The black does not go with the background on my Web site, and I have been spending hours trying to change the black color in the GIF to another color. I even tried: imagecolortransparent($this->var13,$var2); without success.

If you could help me, I would greatly appreciate it.

  20. Re: How to use GIFDecoder.class.php   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2008-02-15 22:48:38 - In reply to message 19 from C.J.
Hi,

I'm so sorry but my email address has been removed by my net provider.
Here is my another private constant email alias: support@gifs.hu

So, i will review this class and I'm searching for the solution for the possibiliti of the change background color.

I'm calling shortly,
László

 
  1 - 10   11 - 20   21 - 30