Swaz
1 year ago
1729
5
Forge

Imagick with Ghostscript on Laravel Forge

Posted 1 year ago by Swaz

I'm trying to use Spatie's pdf-to-image package. https://github.com/spatie/pdf-to-image

I have the following code working on local

    $pdf = new Pdf(public_path('test.pdf'));
    $pdf->saveImage(storage_path('app/public/test.jpg'));

But when I try to run that code on my Forge provisioned site I get a 500 error. Does anyone know how to get that package working?

Please sign in or create an account to participate in this conversation.