PHP Extension

parsadanashviliTRIAL

9 months 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

1 Replies

parsadanashviliTRIAL

9 months ago

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


stefsiekmanPRO

4 months 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!


4 months ago

Sounds like a good solution, thanks for reporting back!


4 months ago

!s


Status changed to Solved adam 4 months ago