title: dompdf image not found on live server
body: <p>After several hours of searching, I am still unable to resolve this issue. I am having a problem with displaying images in a PDF file generated by <a href="https://github.com/dompdf/dompdf" rel="nofollow noreferrer">dompdf</a> library. </p>
  
  <p>I have an editor <a href="http://www.tinymce.com/tryit/basic.php" rel="nofollow noreferrer">tinyMCE</a> where a user can upload images, edit his page, and see a preview in PDF format with a Button press.    </p>
  
  <p><strong>One important thing here:</strong> I am using 'convert_urls : true' in tinyMCE's configuration which converts the image src = "<a href="https://mysite.com/public/images/image_name.png" rel="nofollow noreferrer">https://mysite.com/public/images/image_name.png</a>", necessary for the PDF library to display them. </p>
  
  <p>I set the required dompdf configurations:</p>
  
  <ul>
  <li>def("DOMPDF_ENABLE_REMOTE", true);</li>
  </ul>
  
  <p><a href="https://stackoverflow.com/questions/8996687/dompdf-images-not-showing-on-new-server">Here</a> I found that it will appear after changing the attached CSS with a dompdf like: </p>
  
  <pre><code>img { display:block }
  </code></pre>
  
  <p>All still in vain. </p>
  
  <p><strong>Note:</strong> Everything is working fine on localhost. But on the staging server, I get a message box having a cross inside it saying "image not found" and displaying the image path. When I click on that path, the image is already there on my server. I wonder why dompdf is giving me this message?</p>