PHP Extension
parsadanashvili
FREEOP

2 years ago

You need to install the imagick extension to use this back end

I am getting this error on Laravel project when generating qr code. so it need imagick extension to be enabled.

Solved

4 Replies

parsadanashvili
FREEOP

2 years ago

8b792e10-2ce8-4e92-b48d-c9d92c890b40


stefsiekman
PRO

a year ago

I'm not sure if this helps solve your issue, but I had problems getting Imagick to work in PHP and Laravel and ended up on this thread. I managed to solve it by:

  • Adding "ext-imagick": "*" to composer.json, to let Nixpack know to activate the extension
  • The package I was using (spatie/pdf-to-image) also requires Ghostscript. For that I needed to add it as dependency for the Nixpack build: create a `nixpacks.toml` file, and add the following:
[phases.setup]
nixPkgs = ['...', 'ghostscript']

Hopefully this ends up being helpful to someone!


a year ago

Sounds like a good solution, thanks for reporting back!


a year ago

!s


Status changed to Solved adam over 1 year ago


Welcome!

Sign in to your Railway account to join the conversation.

Loading...