mirror of
https://github.com/friendica/friendica
synced 2025-04-25 06:30:11 +00:00
Fix the handling of unhandled image types and of animations (#13904)
* Fix the handling of unhandled image types and of animations * Avoid warnings
This commit is contained in:
parent
7d10518e94
commit
08fa51d0bb
4 changed files with 23 additions and 8 deletions
|
@ -106,8 +106,8 @@ class Proxy extends BaseModule
|
|||
// stop.
|
||||
}
|
||||
|
||||
// reduce quality - if it isn't a GIF
|
||||
if ($image->getImageType() != IMAGETYPE_GIF) {
|
||||
// reduce quality - if it is supported for this image type
|
||||
if (Images::canResize($image->getType())) {
|
||||
$image->scaleDown($request['size']);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue