PHP-如何在不损失动画质量的情况下在GIF图像上添加文本?
我正在使用下面的代码在JPEG图像上添加文本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); 但是
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图像做同样的事情时,动画的质量会受到影响
提前感谢你的帮助