1
0
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:
Zeokat
2017-05-10 21:23:08 +02:00
committed by Franz Liedke
parent 3dfa6bc8cb
commit 7837fff107
2 changed files with 9 additions and 4 deletions

View File

@@ -173,7 +173,7 @@ class RegisterUserHandler
'target' => $this->uploadDir,
]);
$uploadName = Str::lower(Str::quickRandom()).'.jpg';
$uploadName = Str::lower(Str::quickRandom()).'.png';
$user->changeAvatarPath($uploadName);