title: FPDF error: Missing or incorrect image file: images/Photo/sample.jpg
body: <p>I am fetching the image from the database and the image folder.</p>
  
  <p>now if i dont have the image in folder, it is giving me error:</p>
  
  <pre><code>FPDF error: Missing or incorrect image file: images/Photo/a.jpg
  </code></pre>
  
  <p>I am sorting the images from the folders according to the mysql database image field.</p>
  
  <p>Now what i want is , if there is no image in the folder or if the image field is null, it should not throw me this error. Rather show me the default image which is already there in the folder.</p>
  
  <p>The code i am using is :</p>
  
  <pre><code>    $pict=$row['pict'];
      $image1 = "images/Photo/$pict";
      $pdf-&gt;SetX($xaxis);
      $xaxis=$xaxis-55;
      $yaxis=$yaxis+7;
  
      $pdf-&gt;Cell(0,0,$pdf-&gt;Image($image1,$xaxis,$yaxis,25,29),0,0,'L',0);
      $sign=$row['sign'];
      $image2= "images/Signature/$sign";
      $yaxis=$yaxis+35;
      $pdf-&gt;Cell(0,0,$pdf-&gt;Image($image2,$xaxis,$yaxis,20,0),0,0,'L',0);
  </code></pre>