title: Laravel 5.4 pdf generate: Image not found or type unknown in dompdf after download pdf
body: <p>I am trying to generate a pdf using laravel dom pdf. When i download my pdf it does not show my image. It shows Image not found or type unknown. But in browser it shows correctly. I have followed other corresponding questions in stack. I have enabled <code>$isRemoteEnabled = true;</code>   How can i resolve this?</p>
  
  <p>This is my pdfview: </p>
  
  <pre><code>&lt;html&gt;
      &lt;head&gt;
      {{--&lt;link rel="stylesheet" href="{{ URL::to('css/style.css') }}"&gt;--}}
          &lt;style&gt;
              /*pdf view start*/
              .pdf-content{
                  /*pdf body*/
                  width: 100%;
                  height: 100%;
                  background-color: #d3d3d3;
              }
              .pdf-doctor{
                  /*for doctor*/
                  border-bottom: 1px dashed gray;
              }
              .rx{
                  float: left;
                  margin-top: 5px;
                  width: 100px;
                  height:100px;
              }
              .rx img{
                  width: 100px;
                  height:100px;
              }
              .doctor-info p{
                  text-align: center;
              }
              /*{{--for patient start--}}*/
              .pdf-patient{
                  margin-top: 7px;
                  border-top: 1px dashed gray;
                  height: 30px;
                  width: 100%;
              }
              .pdf-patient h4{
                  float: left;
                  display: inline;
                  color: #0000cc;
              }
              .pdf-patient-name-date{
                  float: left;
                  margin-left: 76px;
                  margin-top: 7px;
                  width: 45%;
              }
  
              .pdf-test{
                  /*for test*/
                  margin-top: 50px;
                  height: 20em;
                  width: 100%;
              }
              .pdf-test h4{
                  margin-left: 76px;
                  /*display: inline;*/
                  color: #0000cc;
              }
              .pdf-test-list{
                  border: 1px solid black;
                  float: left;
                  margin-left: 116px;
                  width: 40%;
              }
              .pdf-test-list p{
                  margin-left: 15px;
                  padding-top: 5px;
              }
              .pdf-test-done{
                  border-top: 1px solid black;
                  border-right: 1px solid black;
                  border-bottom: 1px solid black;
                  float: left;
                  /*margin-left: 76px;*/
                  /*margin-top: 15px;*/
                  height: 37px;
                  width: 10%;
              }
              .pdf-comments{
                  /*for comment*/
                  margin-top: 50px;
                  height: 30px;
                  width: 100%;
              }
              .pdf-comments h3{
                  /*for comment*/
                  margin-left: 76px;
                  /*display: inline;*/
                  color: #0000cc;
              }
  
              /*pdf view end*/
          &lt;/style&gt;
      &lt;/head&gt;
      &lt;body&gt;
          &lt;div class="pdf-content"&gt;
              &lt;div class="pdf-doctor"&gt;
                  &lt;div class="rx"&gt;
                      &lt;img src=" {{ url("/images/rx1.png") }}"&gt;
                      {{--{{URL::asset('/image/propic.png')}}--}}
                  &lt;/div&gt;
                  {{--for doctor--}}
                  &lt;div class="doctor-info"&gt;
                      &lt;p&gt;Doctor's name here&lt;/p&gt;
                      &lt;p&gt;Doctor's degree here&lt;/p&gt;
                      &lt;p&gt;Doctor's Address here&lt;/p&gt;
                      &lt;p&gt;Doctor's Mob here&lt;/p&gt;
                  &lt;/div&gt;
  
              &lt;/div&gt;
  
              &lt;div class="pdf-patient"&gt;
                  {{--for patient--}}
                  &lt;div class="pdf-patient-name" style="float: left;"&gt;
                      &lt;h4 style="display: inline;"&gt;&lt;i&gt;Patient name&lt;/i&gt;:&amp;nbsp&amp;nbsp&lt;/h4&gt;
                      &lt;h4 style="display: inline;"&gt;{{ $patients-&gt;name }}&lt;/h4&gt;
                      {{--style="text-decoration: underline; text-decoration-style: dotted;"--}}
                  &lt;/div&gt;
                  &lt;div class="pdf-patient-date" style="margin-left: 175px;"&gt;
                      &lt;h4 style="display: inline;"&gt;&lt;i&gt;Date&lt;/i&gt;:&amp;nbsp&amp;nbsp&lt;/h4&gt;
                      &lt;h4 style="display: inline;"&gt;{{ $patients-&gt;created_at }}&lt;/h4&gt;
                  &lt;/div&gt;
              &lt;/div&gt;
              &lt;div class="pdf-test"&gt;
                  {{--for test--}}
                  &lt;h4&gt;Tests&lt;/h4&gt;
                  &lt;div style="height: 5px;"&gt;&lt;/div&gt;
                  {{--@foreach($patients as $patient)--}}
                  &lt;div class="pdf-test-list"&gt;
                      &lt;p&gt;{!! nl2br($patients-&gt;test) !!}&lt;/p&gt;
                  &lt;/div&gt;
                  {{--&lt;div class="pdf-test-done"&gt;--}}
                      {{--&lt;p&gt;tik&lt;/p&gt;--}}
                  {{--&lt;/div&gt;--}}
                  {{--@endforeach--}}
  
              &lt;/div&gt;
              &lt;div class="pdf-comments"&gt;
                  {{--for comment--}}
                  &lt;h3 &gt;Comments&lt;/h3&gt;
              &lt;/div&gt;
          &lt;/div&gt;
      &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>my Controller: </p>
  
  <pre><code>public function PdfView(Request $request, $patient_id)
  {
     $patients = Patient::where('id', $patient_id)-&gt;first();
     $pdf = PDF::loadView('pdfview', ['patients'=&gt;$patients]);
     return $pdf-&gt;download('pdfview.pdf');
  }
  </code></pre>
  
  <p>my image is in <code>public/images/rx1.png</code> and pdfview is in views folder. How can i resolve this?</p>