【发布时间】:2018-08-16 21:29:45
【问题描述】:
我正在尝试从路径获取动画 gif 图像。但是我得到的不是动画的 gif
$im = imagecreatefromgif($path);
$newFilePath = app()->basePath("public/memes/") . $newname .'.gif';
header('Content-Type: image/gif');
imagegif($im, $newFilePath);
imagedestroy( $im );
return $newFilePath;
【问题讨论】:
-
在此处查看“用户贡献的注释”:php.net/manual/en/function.imagecreatefromgif.php