mirror of
https://github.com/flarum/core.git
synced 2025-07-24 02:01:19 +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:
@@ -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));
|
||||
|
Reference in New Issue
Block a user