Warning: file_get_contents(/data/phpspider/zhask/data//catemap/1/php/259.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181

Warning: file_get_contents(/data/phpspider/zhask/data//catemap/3/android/186.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
PHP-如何在不损失动画质量的情况下在GIF图像上添加文本?_Php_Image_Append_Gif - Fatal编程技术网

PHP-如何在不损失动画质量的情况下在GIF图像上添加文本?

PHP-如何在不损失动画质量的情况下在GIF图像上添加文本?,php,image,append,gif,Php,Image,Append,Gif,我正在使用下面的代码在JPEG图像上添加文本 imagettftext( $png, $size, 0,$textx+2, $texty+2, $shadow_color, $fontfile, $textval ); imagettftext( $png, $size, 0,$textx, $texty, $tx, $fontfile, $textval ); imagejpeg($png, $medium_card_file_path); imagedestroy($png); 但是

我正在使用下面的代码在JPEG图像上添加文本

imagettftext( $png, $size, 0,$textx+2, $texty+2, $shadow_color, $fontfile, $textval );

imagettftext( $png, $size, 0,$textx, $texty, $tx, $fontfile, $textval );

imagejpeg($png, $medium_card_file_path);

imagedestroy($png);
但是,当尝试使用gif图像做同样的事情时,动画的质量会受到影响

提前感谢你的帮助