diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index a50522cd89549f9a91c81801cb3ac9e76ab93fcc..7f9b410ff9c14b70898247fcb3359f8a042689e3 100644 --- a/apps/theming/lib/ImageManager.php +++ b/apps/theming/lib/ImageManager.php @@ -223,7 +223,7 @@ class ImageManager { throw new \Exception('Unsupported image type'); } - if ($key === 'background' && strpos($detectedMimeType, 'image/svg') === false) { + if ($key === 'background' && strpos($detectedMimeType, 'image/svg') === false && strpos($detectedMimeType, 'image/gif') === false) { // Optimize the image since some people may upload images that will be // either to big or are not progressive rendering. $newImage = @imagecreatefromstring(file_get_contents($tmpFile));