From: Alexander Ebert Date: Mon, 14 Aug 2023 09:56:58 +0000 (+0200) Subject: Merge branch '5.5' X-Git-Tag: 6.0.0_Beta_1~14 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=8b3c2fca555bf247b8775c8d33243d794b790544;p=GitHub%2FWoltLab%2FWCF.git Merge branch '5.5' --- 8b3c2fca555bf247b8775c8d33243d794b790544 diff --cc wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php index 7041a7a5ef,e414f312dc..c5b5adc391 --- a/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php +++ b/wcfsetup/install/files/lib/system/image/adapter/ImagickImageAdapter.class.php @@@ -129,9 -125,12 +129,12 @@@ class ImagickImageAdapter implements II */ public function createThumbnail($maxWidth, $maxHeight, $preserveAspectRatio = true) { + $maxHeight = (int)$maxHeight; + $maxWidth = (int)$maxWidth; + $thumbnail = clone $this->imagick; - if ($thumbnail->getImageFormat() == 'GIF') { + if (\in_array($thumbnail->getImageFormat(), self::$animatedFormats)) { $thumbnail = $thumbnail->coalesceImages(); do {