I'm transferring an application made from PHP to Laravel and in a key process the user uploads an image, the image is cropped and a watermark is added, nothing out of the ordinary. It turns out that when running the code in an ordinary controller and viewed from the browser everything works perfectly, but if the same job is put in a Laravel job queue everything falls apart, why? I don't know, what I do know is that in Laravel I got the following error:
For PNG images
NoDecodeDelegateForThisImageFormat `PNG' @ error/constitute.c/ReadImage/572For JPG images
NoDecodeDelegateForThisImageFormat `JPEG' @ error/constitute.c/ReadImage/572It turns out that Imagick is enabled, but its supported formats are not.
If you're wondering if the web and console versions are the same PHP version, the answer is yes, since I discovered OSPanel it's the only thing I use to develop my apps and version 6 has been by far the best (My respects to the developer).
If you could help me I would be very grateful, ask whatever you want and I'll be attentive. Greetings