Use gd as the image driver

Presumably gd is more common than imagick, and we already check for it
during installation.
This commit is contained in:
Toby Zerner 2015-08-28 05:41:25 +09:30
parent 41019597d0
commit d5074c5286

View File

@ -65,7 +65,7 @@ class UploadAvatarHandler
$tmpFile = tempnam(sys_get_temp_dir(), 'avatar');
$command->file->moveTo($tmpFile);
$manager = new ImageManager(['driver' => 'imagick']);
$manager = new ImageManager();
$manager->make($tmpFile)->fit(100, 100)->save();
event(new AvatarWillBeSaved($user, $actor, $tmpFile));