title: PHP-Imagemagick image display
body: <p>I have php code which create pdf thumbnail as follows;</p>
  
  <pre><code>&lt;?php
  $file ="test.pdf";
  $im = new imagick(realpath($file).'[0]');
  $im-&gt;setImageFormat("png");
  $im-&gt;resizeImage(200,200,1,0);
  header("Content-Type: image/jpeg");
  $thumbnail = $im-&gt;getImageBlob();
  echo $thumbnail;
  ?&gt;
  </code></pre>
  
  <p>Which is working well. But if I want to display the image in a web page, I have to use <code>&lt;img src=""&gt;</code> tag. Is there any way to remove <code>header("Content-Type: image/jpeg");
  </code> from the syntax and echo image using <code>&lt;img src=""&gt;</code>..? Or anybody tell me how to use the syntax to display the image inside a web page.</p>
  
  <p>I am running apache with php5 in my Windows Vista PC..</p>