title: imagick unable to read the file
body: <p>I have following php code in a file:</p>
  
  <pre><code>$figloc = $_GET['figrl'];
  
  try
  {
  $image = new Imagick($figloc);
  $image-&gt;setImageFormat("jpg");
  $image-&gt;setImageColorSpace(5);  
  $image-&gt;writeImage("temp.jpg");
  }
  catch(Exception $e)
  {
   echo $e-&gt;getMessage();
  }
  </code></pre>
  
  <p>and a jquery script like this:</p>
  
  <pre><code>&lt;script src="http://code.jquery.com/jquery-latest.js"&gt;&lt;/script&gt;
  &lt;script&gt;
  $(document).ready(function() {
      figurelocation='temp.jpg';
      var fightmlstring='&lt;img src=\"'+figurelocation+'\"&gt;';
      $('.figuredisplay').append(fightmlstring);
  });
  </code></pre>
  
  <p></p>
  
  <p>figuredisplay is a div element. $figloc value is the absolute address of the image on disk, like '/home/abc/def/ghi/jkl.tiff'. The php file, when opened from appropriate link, shows the error message "imagick unable to open file /home/abc/def/ghi/jkl.tiff". Can the absolute address cause a problem? </p>
  
  <p>Also, when I copied a particular tiff file to my directory, to see if the absolute address was a problem, imagick possessedly read that file, but failed to create temp.jpg </p>
  
  <pre><code>unable to open image `/var/www/temp.jpg @ error/blob.c/OpenBlob/2489 
  </code></pre>
  
  <p>Can anyone point me what I am doing wrong?</p>