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