Reputation: 41
I'm using DOMPDF along with Laravel-dompdf and after hours of research I cannot find a solution that will enable my images to render. I've referenced these questions already:
DomPDF: Image not readable or empty
dompdf image not real image not readable or empty
In both package config files I have def("DOMPDF_ENABLE_REMOTE", true);
and def("DOMPDF_ENABLE_AUTOLOAD", true);
. And of course I have checked the paths, they are all correct. I also tried this solution, which didn't work for me.
Can anyone offer a different solution?
Upvotes: 2
Views: 4474
Reputation: 165
I solved this problem by using public path:
<img src="{{ public_path('image.jpg') }}" />
Upvotes: 1