wasm_avif 0.7.0

esm modules for avif image compression, with sync and async (worker) versions
Documentation
  • Coverage
  • 40%
    2 out of 5 items documented0 out of 3 items with examples
  • Size
  • Source code size: 810.1 kB This is the summed size of all the files inside the crates.io package for this release.
  • Documentation size: 283.4 kB This is the summed size of all files generated by rustdoc for all configured targets
  • Ø build duration
  • this release: 40s Average build duration of successful builds.
  • all releases: 47s Average build duration of successful builds in releases after 2024-10-23.
  • Links
  • packurl/wasm_avif
    12 1 0
  • crates.io
  • Dependencies
  • Versions
  • Owners
  • programingjd

crates.io

WASM libs for avif image compression.

This is a fork of the ravif rust crate.

Compilation:

cargo build --release

Wasm file optimization:

wasm-opt --dce --vacuum -Os target/wasm32-unknown-unknown/release/wasm_avif.wasm -o avif.wasm

Dependencies:


jellyfish.jpg 
jpg : 876454
avif: 157994, speed: 10,  time:  35.1
avif: 137079, speed:  9,  time:  39.6
avif: 137217, speed:  8,  time:  70.9
avif: 137217, speed:  7,  time:  70.7
avif: 136226, speed:  6,  time:  78.9
avif: 136226, speed:  5,  time:  79.2
avif: 136110, speed:  4,  time:  79.8
avif: 136235, speed:  3,  time:  81.2
avif: 132943, speed:  2,  time:  96.4
avif: 121904, speed:  1,  time: 523.4

jellyfish_small.jpg
jpg : 13964
avif:  6818, speed: 10,  time: 0.6
avif:  6264, speed:  9,  time: 0.6
avif:  6229, speed:  8,  time: 1.0
avif:  6229, speed:  7,  time: 1.0
avif:  6198, speed:  6,  time: 1.1
avif:  6198, speed:  5,  time: 1.1
avif:  6179, speed:  4,  time: 1.2
avif:  6198, speed:  3,  time: 1.2
avif:  6027, speed:  2,  time: 1.6
avif:  5852, speed:  1,  time: 7.8