Make images smaller using best-in-class codecs, right in the browser.
JavaScript
Disable logging statically in OxiPNG
Ingvar Stepanyan6f18f08a8e47
diff --git a/codecs/oxipng/Cargo.lock b/codecs/oxipng/Cargo.lockindex f89fd126..4787588d 100644--- a/codecs/oxipng/Cargo.lock+++ b/codecs/oxipng/Cargo.lock@@ -282,6 +282,7 @@ dependencies = [name = "oxipng"version = "0.1.0"dependencies = [+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)","oxipng 2.3.0 (git+https://github.com/shssoichiro/oxipng.git)","wasm-bindgen 0.2.60 (registry+https://github.com/rust-lang/crates.io-index)",]@@ -289,7 +290,7 @@ dependencies = [[[package]]name = "oxipng"version = "2.3.0"-source = "git+https://github.com/shssoichiro/oxipng.git#f74726915131ec7ff1df0514436aac34bc603cff"+source = "git+https://github.com/shssoichiro/oxipng.git#ec8ecf5a800dfb41359d9cf41eed8a730062b9a8"dependencies = ["bit-vec 0.6.1 (registry+https://github.com/rust-lang/crates.io-index)","byteorder 1.3.4 (registry+https://github.com/rust-lang/crates.io-index)",@@ -299,9 +300,9 @@ dependencies = ["indexmap 1.3.2 (registry+https://github.com/rust-lang/crates.io-index)","itertools 0.9.0 (registry+https://github.com/rust-lang/crates.io-index)","libdeflater 0.2.0 (registry+https://github.com/rust-lang/crates.io-index)",+ "log 0.4.8 (registry+https://github.com/rust-lang/crates.io-index)","miniz_oxide 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",- "num_cpus 1.12.0 (registry+https://github.com/rust-lang/crates.io-index)",- "rgb 0.8.16 (registry+https://github.com/rust-lang/crates.io-index)",+ "rgb 0.8.17 (registry+https://github.com/rust-lang/crates.io-index)","zopfli 0.4.0 (registry+https://github.com/rust-lang/crates.io-index)",]@@ -356,7 +357,7 @@ dependencies = [[[package]]name = "rgb"-version = "0.8.16"+version = "0.8.17"source = "registry+https://github.com/rust-lang/crates.io-index"[[package]]@@ -488,7 +489,7 @@ dependencies = ["checksum quote 1.0.3 (registry+https://github.com/rust-lang/crates.io-index)" = "2bdc6c187c65bca4260c9011c9e3132efe4909da44726bad24cf7572ae338d7f""checksum rayon 1.3.0 (registry+https://github.com/rust-lang/crates.io-index)" = "db6ce3297f9c85e16621bb8cca38a06779ffc31bb8184e1be4bed2be4678a098""checksum rayon-core 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "08a89b46efaf957e52b18062fb2f4660f8b8a4dde1807ca002690868ef2c85a9"-"checksum rgb 0.8.16 (registry+https://github.com/rust-lang/crates.io-index)" = "5ec4ab2cf0b27e111e266e161cf7f9efd20125a161190da1c0945c4a4408fef3"+"checksum rgb 0.8.17 (registry+https://github.com/rust-lang/crates.io-index)" = "a85b83fd629b0ce765f45316774fa6aaa95947fd74c8e4bbf3c6d1e349701d95""checksum scopeguard 1.1.0 (registry+https://github.com/rust-lang/crates.io-index)" = "d29ab0c6d3fc0ee92fe66e2d99f700eab17a8d57d1c1d3b748380fb20baa78cd""checksum syn 1.0.17 (registry+https://github.com/rust-lang/crates.io-index)" = "0df0eb663f387145cab623dea85b09c2c5b4b0aef44e945d928e682fce71bb03""checksum typed-arena 1.7.0 (registry+https://github.com/rust-lang/crates.io-index)" = "a9b2228007eba4120145f785df0f6c92ea538f5a3635a612ecf4e334c8c1446d"diff --git a/codecs/oxipng/Cargo.toml b/codecs/oxipng/Cargo.tomlindex 42c48975..db0dc217 100644--- a/codecs/oxipng/Cargo.toml+++ b/codecs/oxipng/Cargo.toml@@ -11,6 +11,7 @@ crate-type = ["cdylib"][dependencies]oxipng = { version = "2.3.0", default-features = false }wasm-bindgen = "0.2.48"+log = { version = "0.4", features = ["release_max_level_off"] }[profile.release]lto = truediff --git a/codecs/oxipng/pkg/oxipng_bg.wasm b/codecs/oxipng/pkg/oxipng_bg.wasmindex 7c094e40..d6d45940 100644Binary files a/codecs/oxipng/pkg/oxipng_bg.wasm and b/codecs/oxipng/pkg/oxipng_bg.wasm differ