1
0
mirror of https://github.com/flarum/core.git synced 2025-08-06 08:27:42 +02:00

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 22ab34f75c
commit 3fab329937

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));