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.
1 Replies
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": "*"
tocomposer.json
, to let Nixpack know to activate the extensionThe 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