Jump to content

Copying Gif Animated Files


westman

Recommended Posts

i have gif animated files that a can copy but after the copy they are not animated, they are static. i am using this method... $img3 = imagecreatefromgif("../images/$id/pic$id.gif");imagegif($img3, "pics/3/$id.gif", 100); is there a way to copy a gif file and keep it animated?

Link to comment
Share on other sites

Since you're not doing any manipulation, you can avoid the GD library altogether:

$image3 = file_get_contents("../images/$id/pic$id.gif");file_put_contents("pics/3/$id.gif",$image3);

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...