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:
parent
13735f35fb
commit
0fe11ef337
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue