I'm having the following code:
$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);
And I want to output the image string to stdout instead of saving it to the file?
How can I achieve that?
Thank you in advance!