mardi 1 janvier 2019

ImageMagick works in controllers but "not available" in queues?

I've just about lost my mind trying to fix this one. I'm using ImageMagick in my controllers, and it's working okay. I've now tried to move some of those functions to a queued job, and it's now saying "ImageMagick module not available with this PHP installation."

Move them back, everything works again. Put them into a Job, everything breaks.

I'm not sure what context I could supply, really. I'm importing Image and Imagick the same in both the controllers and the jobs:

use Intervention\Image\ImageManagerStatic as Image;
use Imagick;

Image::configure(['driver' => 'imagick']);

Works fine in the controller (and helper functions), but dies here in jobs:

$preview = Image::make($file);

Identical code, aside from that. Is there any other info that could be of use?



via Chebli Mohamed

Aucun commentaire:

Enregistrer un commentaire