mirror of
https://github.com/flarum/framework.git
synced 2025-01-20 05:32:49 +08: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:
parent
41019597d0
commit
d5074c5286
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue
Block a user