我有以下代码:
$animation = 'animation.gif';
$watermark = 'watermark.jpg';
$watermarked_animation = 'watermarked.gif';
$cmd = "$animation -extent 400x255 -coalesce -gravity southwest -geometry +0+0 null: $watermark -layers composite -layers optimize";
exec("convert $cmd $watermarked_animation", $output);
print_r($output);
我想将图像字符串输出到标准输出而不是将其保存到文件中?
我怎样才能做到这一点?
先感谢您!