diff options
author | Jacob Neplokh <me@jacobneplokh.com> | 2020-10-27 23:26:54 +0300 |
---|---|---|
committer | Jacob Neplokh <me@jacobneplokh.com> | 2020-11-03 00:52:49 +0300 |
commit | ef8822d3c71c436d20dbd0c51f469d6136cfe4e6 (patch) | |
tree | fe853d27026191bfcae1d9c5d2f86df70550da9d /apps/theming/lib | |
parent | 65375320fb94fe3b7d0aaaecc9e66b7458ed6c1a (diff) |
Add gif to if-statement to not convert
- SVGs are already there, so I just added it alongside it (as recommended by https://github.com/nextcloud/server/issues/16232#issuecomment-679920284)
Signed-off-by: Jacob Neplokh <me@jacobneplokh.com>
Diffstat (limited to 'apps/theming/lib')
-rw-r--r-- | apps/theming/lib/ImageManager.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/theming/lib/ImageManager.php b/apps/theming/lib/ImageManager.php index a50522cd895..7f9b410ff9c 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)); |