hello all,
after much research i found the class attached with this post using which i can create gif images. bt the problem i was facing was tht i want to convert jpg images into gif nd gif to animated gif.
Then i made some minor work and now its working fine.
here is hw i did it
CODE
<?php
include "GIFEncoder.class.php";
for($i=1;$i<6;$i++){
$imgname = "images/".$i.".jpg";
$im = @imagecreatefromjpeg($imgname); /* Attempt to open */
imagegif($im, "images/".$i.".gif");
$frames[] = "images/".$i.".gif";
$time[] = 200;
}
$gif = new GIFEncoder (
$frames, // frames array
$time, // elapsed time array
0, // loops (0 = infinite)
2, // disposal
0, 0, 0, // rgb of transparency
"url" // source type
);
// display the image
Header ( 'Content-type:image/gif' );
echo $gif->GetAnimation ( );
for($i=1;$i<6;$i++){
@unlink("images/".$i.".gif");
}
?>
here wht i did is, first i convert the jpg images into gif, thn make the gif and thn delete the gif.
im posting this solutions hoping others with similar problem can solve it easily.
thankyou.
This post has been edited by silverblaze: 6 Jun, 2008 - 01:46 AM