FIX: Stop optimizing WEBPs into JPGs (#25140)

This rarely results in better compression, and there are many uses of animated WEBPs too
This commit is contained in:
Rafael dos Santos Silva 2024-01-05 12:18:48 -03:00 committed by GitHub
parent 13735f35fb
commit 0fe11ef337
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -37,7 +37,7 @@ export default class MediaOptimizationWorkerService extends Service {
: true;
let file = data;
if (!/(\.|\/)(jpe?g|png|webp)$/i.test(file.type)) {
if (!/(\.|\/)(jpe?g|png)$/i.test(file.type)) {
return Promise.resolve();
}
if (