From 3a7e92ed0174ab48d59fe53c3c9d0bb618041fb8 Mon Sep 17 00:00:00 2001 From: Hugo Sales Date: Sun, 18 Apr 2021 20:39:43 +0000 Subject: [PATCH] [ImageEncoder] Change preferred type to always be WEBP --- plugins/ImageEncoder/ImageEncoder.php | 8 -------- 1 file changed, 8 deletions(-) diff --git a/plugins/ImageEncoder/ImageEncoder.php b/plugins/ImageEncoder/ImageEncoder.php index 906ad86e65..505f3df604 100644 --- a/plugins/ImageEncoder/ImageEncoder.php +++ b/plugins/ImageEncoder/ImageEncoder.php @@ -34,17 +34,9 @@ class ImageEncoder extends Plugin { /** * Several obscure file types should be normalized to WebP on resize. - * - * Keeps only GIF (if animated) and WebP formats - * - * @return int */ public function preferredType(): int { - if ($this->type == IMAGETYPE_GIF && $this->animated) { - return $this->type; - } - return IMAGETYPE_WEBP; }