title: PHP: How can I create a (PNG, JPEG or GIF) image and encode it directly in base 64 without saving it?
body: <p>I have a script that creates an image. I have to make a common format like GIF, JPEG or PNG out of it and convert it to base 64, later on.</p>
  
  <p>When doing this, I do not want to save the image on the server, nor I want any browser output.
  So imagepng() seems not right command for this.</p>
  
  <p>Any ideas?</p>