Is it possible to load an entire gif with PHP?
header("Content-type: image/gif");
$im = imagecreatefromgif("ani.gif");
header("Content-Type: image/gif");
imagegif($im);
imagedestroy($im);
^ I've tried the following but it only loads the first frame.
Printable View
Is it possible to load an entire gif with PHP?
header("Content-type: image/gif");
$im = imagecreatefromgif("ani.gif");
header("Content-Type: image/gif");
imagegif($im);
imagedestroy($im);
^ I've tried the following but it only loads the first frame.
What happens the second time?
You don't need to load the image with GD if you do not intend resizing / sampling it.
PHP Code:header("Content-type: image/gif");
echo(file_get_contents("ani.gif"));
That works perfect thanks alot.