pull/5981/head
Daniel Supernault 4 months ago
parent 27953d0969
commit 5c7064063d
No known key found for this signature in database
GPG Key ID: 23740873EE6F76A1

@ -58,9 +58,9 @@ class AvatarOptimize implements ShouldQueue
$extension = strtolower($fileInfo['extension'] ?? 'jpg');
$driver = match(config('image.driver')) {
'imagick' => new \Intervention\Image\Drivers\Imagick\Driver(),
'vips' => new \Intervention\Image\Drivers\Vips\Driver(),
default => new \Intervention\Image\Drivers\Gd\Driver()
'imagick' => new \Intervention\Image\Drivers\Imagick\Driver::class,
'vips' => new \Intervention\Image\Drivers\Vips\Driver::class,
default => new \Intervention\Image\Drivers\Gd\Driver::class
};
$imageManager = new ImageManager(

@ -43,9 +43,9 @@ class Image
$this->orientation = null;
$driver = match(config('image.driver')) {
'imagick' => new \Intervention\Image\Drivers\Imagick\Driver(),
'vips' => new \Intervention\Image\Drivers\Vips\Driver(),
default => new \Intervention\Image\Drivers\Gd\Driver()
'imagick' => new \Intervention\Image\Drivers\Imagick\Driver::class,
'vips' => new \Intervention\Image\Drivers\Vips\Driver::class,
default => new \Intervention\Image\Drivers\Gd\Driver::class
};
$this->imageManager = new ImageManager(

Loading…
Cancel
Save