79488953

Date: 2025-03-06 10:13:29
Score: 0.5
Natty:
Report link

Thank you for your answer Switi

But as i stated in the body of my question, i've already installed php_gd by exactly doing what you are telling in your answer

Something caught my attention though, i didn't try the asset() for the src. So following up on your advice i replaced in my controller method processDynamicImages() , in if($format === 'pdf') this :

                             $newPath = str_replace('\\', '/', $newPath);

by that :

$newPath = str_replace('\\', '/', asset($newPath));

Now, two things changed.

array (0 => true,1 => NULL) instead of false and Permission denied before returning :

Dompdf\Exception\ImageException {#4598 ▼ // vendor\dompdf\dompdf\src\Image\Cache.php:191
  #message: "Image not found"
  #code: 2
  #file: "
D:\Graphy Scope\CRM MASTERFORMA\Code\masterforma\vendor
\dompdf\dompdf\
src\Image\Cache.php
"
  #line: 117
  trace: {▶}
}

We're getting somewhere !

If i dd($full_url); i get http://localhost:8000/storage/companies/logos/QYMcuLqYwlhqZIXst1j13w79iI41wctYNenXVuf6.png which is the right path to the image, so i don't understand the image not found

Reasons:
  • Blacklisted phrase (0.5): Thank you
  • Long answer (-1):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (1):
Posted by: dvdmnc