title: Insert image in pdf in php using mpdf
body: <p>Here,below is my code for converting an image into pdf using mpdf.
  $html contains <code>upload/tulips.jpg</code>
  But,when the function executes the pdf file created and an image icon shows there with the location <code>upload/tulips.pdf</code>.
  Kindly tell me why this is happening because no bug is coming.   </p>
  
  <pre><code>   private function ConvertImageToPdf($inputPath,$outputPath)
              { 
                  $mpdf=new mPDF();
                  $html='&lt;img src='.$inputPath.'/&gt;';
                  $mpdf-&gt;WriteHTML($html);
                  $mpdf-&gt;Output($outputPath.".pdf",'F');
                  $mpdf-&gt;debug = true;
  
              }
  </code></pre>