Skip to content

Make images smaller using best-in-class codecs, right in the browser.

JavaScript

not-fully-working autoOptimize for oxipng

Jason Miller612cee0011cc
diff --git a/cli/src/codecs.js b/cli/src/codecs.js
index 2be8cac0..5c323e17 100644
--- a/cli/src/codecs.js
+++ b/cli/src/codecs.js
@@ -148,6 +148,11 @@ export default {
},
defaultEncoderOptions: {
level: 2
+ },
+ autoOptimize: {
+ option: "level",
+ min: 6,
+ max: 1
}
}
};