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

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 (