We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4897568 commit 97a6d85Copy full SHA for 97a6d85
wcfsetup/install/files/lib/system/file/command/ReplaceWithWebpVariant.class.php
@@ -25,6 +25,12 @@ public function __invoke(): File
25
return $this->file;
26
}
27
28
+ // We cannot reliably detect if a GIF is animated without ImageMagick
29
+ // and the generated WebP variant will always be static.
30
+ if ($this->file->mimeType === 'image/gif') {
31
+ return $this->file;
32
+ }
33
+
34
$command = new ReplaceFileSource(
35
$this->file,
36
$pathnameWebp,
0 commit comments