Hello guys,
I have an image upload script. When uploading animated GIFs it wont work as it wont show an animation.
It seems Imagegif() doesn't work on animated gifs (http://www.php.net/imagegif).
Here is the code,
$file_ext = $filedata['file_ext'];
switch ($file_ext)
{
case 'gif':
{
$image = imagecreatefromgif ($file_path . $file_filename);
header ("Content-Type: image/gif");
Imagegif ($image);
ImageDestroy ($image);
break;
}
Does anyone know how i could make this work? (i dont want to use ImageMagick)
I have limited knowledge about PHP + GD and would appreciate some help 🙂
Thank you in advance
lawina
PS: PHP 4.4.1 is installed on the server