Страница 1 из 1

Imagick - problem and mismatch with php console

Добавлено: 27 янв 2025, 22:47
ItaloMarcelo
Hello, I'm Italo from Chile, I don't speak any Russian, sorry.
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/572
For JPG images
NoDecodeDelegateForThisImageFormat `JPEG' @ error/constitute.c/ReadImage/572
It 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

Re: Imagick - problem and mismatch with php console

Добавлено: 20 апр 2025, 01:34
Максим
My response applies to OSPanel version 6.2.6 and above. The program must be installed as a regular (non-portable) version, following the installation instructions. After that, all you need to do in the console of any IDE before starting work is activate the project environment using one of the following commands:
osp project example.local – directly select the project example.local
osp project auto – automatically select the project based on the current root directory  
osp project – project selector