|  | 
  renaud - 2006-07-09 17:09:00 - In reply to message 20 from renaudHi, me again ;-)
 Do you know why the delay is not the same on the web server and in my local host ? this is very strange !
 And more, even if I change the delay variable in my script, no change on the animated gif !
 All was perfect on my local host...
 
 Do you have an idea ?
 Best Regards.
  László Zsidi - 2006-07-10 04:25:04 - In reply to message 21 from renaudHi,
 Try to review how to fill up delay array and try to check how to pass to the constructor most likely.
 
 How to call the GifMerge class from your subsite?
 Can you write me the setup process and the call method of class?
 I'd like to review your code.
 
  Jano - 2006-08-13 20:47:16 - In reply to message 22 from László ZsidiThanks a lot for Class. It is really superb, it is pitty it is hosted only here. But anyway I will recommend that on php man pages. Again gr8 work!
  roy - 2006-08-21 18:24:33 - In reply to message 15 from László ZsidiHello László 
 I'm Roy from the UK - thanks for writing this class, and supporting it !!!
 
 I'm going to use it on a new website idea, when you say link to me do you mean link to http://gifs.hu ?
 
 
  roy - 2006-08-23 16:21:18 - In reply to message 24 from royWhat I want visitors to do is right click and “Save picture As….”  How can I put “.gif” on the end of the name?  because my visitors will forget to give the name an extension when they save it.
 Any ideas?
 
  László Zsidi - 2006-08-26 14:32:22 - In reply to message 25 from royHi Roy,
 Sorry for my slow reaction, I was holiday...:)
 You can set the output filename and extension by http headers.
 
 Header('Content-type: image/gif'); // GIF image
 Header('Content-disposition: attachment; filename: image.gif'); // Filename
  Kevin Hereman - 2006-09-25 18:12:29 - In reply to message 2 from László ZsidiHello,great class indeed...congratulations on your work.
 
 However, I cannot generate a dynamic GIf with the C_MEMORY parameter.
 
 Following code does not work...What am I doing wrong?
 
 header('Content-type: image/gif');
 require('GifMerge.class.php');
 $image = @imagecreatefromgif('images/frame01.gif');
 $image2 = @imagecreatefromgif('images/frame05.gif');
 ob_start();
 imagegif($image);
 $frames[0] = ob_get_contents;
 ob_end_clean();
 ob_start();
 imagegif($image2);
 $frames[1] = ob_get_contents;
 ob_end_clean();
 
 $d = array(10, 10);
 
 $x = array(0, 0);
 
 $y = array(0, 0);
 imagedestroy($image);
 imagedestroy($image2);
 
 $anim = new GifMerge($frames, 0, 255, 255, 0, $d, $x, $y, 'C_MEMORY');
 echo $anim->getAnimation();
  László Zsidi - 2006-09-25 20:42:31 - In reply to message 27 from Kevin HeremanHi,
 Unfortunately you forget the brackets from ob_get_contents functions.
 
 The working script:
 
 <?php
 header('Content-type: image/gif');
 
 require('GifMerge.class.php');
 
 $image = @imagecreatefromgif('frame01.gif');
 
 $image2 = @imagecreatefromgif('frame05.gif');
 
 ob_start();
 
 imagegif($image);
 
 $frames[] = ob_get_contents ( ); // Don't forget brackets!
 
 ob_end_clean();
 
 ob_start();
 
 imagegif($image2);
 
 $frames[] = ob_get_contents ( ); // Don't forget brackets!
 
 ob_end_clean();
 
 $d = array(10, 10);
 
 $x = array(0, 0);
 
 $y = array(0, 0);
 
 imagedestroy($image);
 imagedestroy($image2);
 
 $anim = new GifMerge($frames, 0, 255, 255, 0, $d, $x, $y, 'C_MEMORY');
 echo $anim->getAnimation();
 ?>
 
 Good luck,
 
 László Zsidi
 |