Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Mesbah-Us-Saleheen's avatar

Imagick PHP extension

I have got an error: "Imagick PHP extension must be installed to use this driver." I am using the following code: ImageManager::imagick()->read($photo)->resize(240, 120)->save('public/files/brand/' . $photoname); I have installed the Imagick extension in Laragon but still I am getting this error. Can anyone assist me in this?

0 likes
4 replies
tykus's avatar

I don't use Laragon, but if installed correctly, check also that this line exists / is uncommented in the relevant php.ini file for your PHP version?

extension=imagick
Mesbah-Us-Saleheen's avatar

@tykus I have manually write this. First I have pasted php_imagick.dll file to the bin/php/php-8.2.23/ext folder of laragon then manually inserted the line you have mentioned but it didn’t work. I checked with php -i in the cmd but imagick is not mentioned there which means though laragon shows that the extension is enabled but driver doesn’t get it

gych's avatar

Did you restart apache after installing the extension?

Please or to participate in this conversation.