mirror of
https://github.com/flarum/core.git
synced 2025-10-11 15:04:25 +02:00
Support PNG avatars with transparent backgrounds and fix EXIF rotation (#1168)
As `orientate` requires the EXIF extension, we can only call it if the extension is installed. Fixes #1161 and #1163.
This commit is contained in:
@@ -173,7 +173,7 @@ class RegisterUserHandler
|
||||
'target' => $this->uploadDir,
|
||||
]);
|
||||
|
||||
$uploadName = Str::lower(Str::quickRandom()).'.jpg';
|
||||
$uploadName = Str::lower(Str::quickRandom()).'.png';
|
||||
|
||||
$user->changeAvatarPath($uploadName);
|
||||
|
||||
|
Reference in New Issue
Block a user