title: php: recreate and display an image from binary data
body: <p>Is it possible to recreate images from binary data (process them if needed) and display them, all in the same script? Something like</p>
  
  <pre><code>// get and display image 1:
  $imagedata1 = file_get_contents('assets/test.png');
  $imagedata1 = process_using_gd_or_something($imagedata1);
  
  echo "&lt;img src={$imagedata1} &gt;"; // &lt;-- IS THIS (OR EQUIVALENT) POSSIBLE?
  
  // get and display image 2:
  //etc...
  </code></pre>
  
  <p>I want to avoid storing the images to to disk after processing and getting them from there, or using an external script...</p>