PHP Classes

Frame offsets not working

Recommend this page to a friend!

      GIF images into animated GIF with native PHP class  >  All threads  >  Frame offsets not working  >  (Un) Subscribe thread alerts  
Subject:Frame offsets not working
Summary:Horizontal and vertical frame offsets don't work
Messages:2
Author:Lewie Dekker
Date:2009-05-22 03:31:11
Update:2009-05-22 04:04:03
 

  1. Frame offsets not working   Reply   Report abuse  
Picture of Lewie Dekker Lewie Dekker - 2009-05-22 03:31:11
The package description states "The class takes as input parameters the list of GIF frame image files, the animation delay between each frame, the horizontal and vertical offset of each frame image."

This apparently was a feature in the old version of GifMerge, where the class was called GifMerge.class.php. With the change to GIFEncoder.class.php this feature appears to have been dropped.

One (apparently) used to do something like:
<?php
header('Content-type: image/gif');
require('GifMerge.class.php');
$i = array("frame01.gif","frame02.gif","frame03.gif", ...);
$d = array(10, 10, 10, ...);
$x = array(0, 0, 0, ...);
$y = array(0, 0, 0, ...);
$anim = new GifMerge($i, 255, 255, 255, 0, $d, $x, $y, 'C_FILE');
echo $anim->getAnimation();
?>

If x/y offset is still working, can someone please show the format of the input params?

Alternatively, if anyone has the original version of GifMerge.class.php, I'd be most interested to receive a copy and try to put it back into the GIFEncoder.class

  2. Re: Frame offsets not working   Reply   Report abuse  
Picture of László Zsidi László Zsidi - 2009-05-22 04:04:03 - In reply to message 1 from Lewie Dekker
Hi,

I am working on encoder and decoder classes, I am trying to make perfect.
The old encoder class you can download at http://scriptwiz.net/index.php?options=resources&resource_id=3.