Update src/Model/Photo.php
Co-authored-by: Hypolite Petovan <hypolite@mrpetovan.com>
This commit is contained in:
parent
e98d11a9ae
commit
0539c788ef
1 changed files with 1 additions and 1 deletions
|
@ -464,7 +464,7 @@ class Photo
|
||||||
$maximagesize = DI::config()->get('system', 'maximagesize');
|
$maximagesize = DI::config()->get('system', 'maximagesize');
|
||||||
if (!empty($maximagesize) && ($filesize > $maximagesize)) {
|
if (!empty($maximagesize) && ($filesize > $maximagesize)) {
|
||||||
Logger::info('Avatar exceeds image limit', ['uid' => $uid, 'cid' => $cid, 'maximagesize' => $maximagesize, 'size' => $filesize, 'type' => $Image->getType()]);
|
Logger::info('Avatar exceeds image limit', ['uid' => $uid, 'cid' => $cid, 'maximagesize' => $maximagesize, 'size' => $filesize, 'type' => $Image->getType()]);
|
||||||
if (($Image->getType() == 'image/gif')) {
|
if ($Image->getType() == 'image/gif') {
|
||||||
$Image->toStatic();
|
$Image->toStatic();
|
||||||
$Image = new Image($Image->asString(), 'image/png');
|
$Image = new Image($Image->asString(), 'image/png');
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue