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

kramsuiluj's avatar

How to install Imagick on laravel project?

I'm using Simple QrCode package to generate qrcode, I want to save it as .png but imagick php extension is required. I was able to install imagick on my php I'm using laragon, but I can't find a way to install it on laravel, I just don't know what I'm doing, I've been stuck for hours trying to implement it on a laravel project. I would really appreciate any help right now.

0 likes
14 replies
Sinnbeck's avatar

What kind of errors are you getting?

1 like
kramsuiluj's avatar

@Sinnbeck 'You need to install the imagick extension to use this back end' this is what I'm getting.

1 like
Sinnbeck's avatar

@kramsuiluj check if it is loaded. Create phpinfo.php in public

<?php
phpinfo();

Call the file and search for imagick

kramsuiluj's avatar

@Sinnbeck It showed up on laragon I created a file on the root and checked, but in laravel it doesn't.

kramsuiluj's avatar

@Sinnbeck Sorry, I didn't know what I was doing, I should've installed it on the php on drive C not on laragon, still confused on why its like that.

Sinnbeck's avatar

@kramsuiluj sadly I don't use laragon (or windows). Perhaps create a new thread and ask for help. I'm sure someone uses it

1 like
kramsuiluj's avatar

@Sinnbeck Thanks a lot! I got it to work now, I searched for hours but there wasn't any tutorials for laravel on windows, I saw one on linux though.

Sinnbeck's avatar

@kramsuiluj well give Linux a try some day. I'm sure you won't regret it. Ive been using Linux for 6 years and don't miss windows at all

2 likes
kramsuiluj's avatar

@Sinnbeck I've been wanting to try it for quite a while now, maybe when this school semester ends I will :)

Snapey's avatar
Snapey
Best Answer
Level 122

You don't install it in Laravel. Its a PHP extension and how you install it depends on which server OS and webserver you are using.

1 like
kramsuiluj's avatar

@Snapey I'm so confused right now, all this time my laragon has been using the php on my C drive not the one inside the laragon directory, I installed the imagick on the php on my C drive and it worked.

mryoussefghannam's avatar

Hi, you can just install the package: intervention/image-laravel, then use GD instead of Imagick, I do have the same issue you got here but since switched to GD everything works fine, I know it's been 2 years. Cheers

Please or to participate in this conversation.