Png encode method now returns an ArrayBuffer which matches the return type of other jSquash encode methods
Png codec will ignore image checksum errors. Allows images with invalid header chunks to be decoded (Fixes #44)
Codec wasm and js files moved to/codec/pkg dir (due to addition of Rust source)
If you are accessing the wasm file by path you'll need to update your paths to reference node_modules/@jsquash/png/codec/pkg/squoosh_png_bg.wasm. It's now nested in the pkg dir.
Upgrades codec to image-png 0.17.10 (increases wasm file size by 54KB)
Other changes
Adds rust source code (I should have added this to begin with, apologies 🙇 )
Fixes #44
Breaking Changes
encode
method now returns anArrayBuffer
which matches the return type of other jSquashencode
methods/codec/pkg
dir (due to addition of Rust source)node_modules/@jsquash/png/codec/pkg/squoosh_png_bg.wasm
. It's now nested in thepkg
dir.Other changes