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:
Michael Vogel 2024-02-17 15:46:48 +01:00 committed by GitHub
parent 7d10518e94
commit 08fa51d0bb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 23 additions and 8 deletions

View file

@ -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']);
}