Unable to read image from path using image intervention lib only with imagick driver

Keywords: LAMP/MAMP/WAMP - AWS - Technical issue - Permissions

bnsupport ID: 6ce2e75d-ed0e-5afb-0a96-fe606fcb7afb

bndiagnostic output:

? Apache: Found possible issues
? Resources: Found possible issues
https://docs.bitnami.com/general/apps/wordpress/troubleshooting/debug-errors-apache/
https://docs.bitnami.com/installer/faq/linux-faq/administration/increase-memory-linux/

bndiagnostic failure reason: The suggested guides are not related with my issue

Description:
I em developing web app using Laravel - PHP
I have to upload images, resize and convert images, for that I em using ‘Intervention Image’ which is an open source PHP image handling and manipulation library (https://image.intervention.io/v2).
Two image driver that this lib supports is GD and Imagick, I enabled Imagic driver using this tutorial: https://docs.bitnami.com/aws/apps/concrete5/configuration/install-modules-php/
and it is working, it initializes Image intervention class with ‘Imagic’ driver.
Problem arise when I try to upload image and than use that image with Intervention, so something like this is failing $img = Image::make(‘public/foo.jpg’);
Upload of file is working, I manage to upload it put it in some subdirectory and that latter on try to use it but as long as I em using ‘Imagic’ driver instead of ‘GD’ I em always getting error something like this:
Intervention\Image\Exception\NotReadableException
Unable to read image from path (/opt/bitnami/apache/htdocs/acc/public/images/uploads/temp/376/building-materials-250x250.jpeg).

this path is an example, I’m even manually change permission of that file to 0777 and change code to now work with already uploaded file and try to load it again but with same results.
Everything is working fine in local env and on production if I em using GD lib instead of Imagic, but I em in need of Imagic driver as it can convert images to webp format.
Please help me with what I am doing wrong, I have not been able to get the desired results for days. Is it somehow my fault or server is not working with this lib?
Thanks in advance

Hi @v.kuraica,

Thanks for using Bitnami. I launched a fresh new LAMP instance and enabled the imagick extension without issues using the docs you linked. Can you check the phpinfo() page of PHP detects Imagick as enabled?

Additionally, can you check the error you are getting with the developers of the application you are trying to use? They should be able to help you to better debug it

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.