Crate pngenc

source ·
Expand description

uncompressing png encoding crate

pngenc::ode(
  pngenc::RGB, // color type
  (2144, 1424), // width and height
  include_bytes!("../benches/cat"), // image to encode
  &mut std::fs::File::create("hey.png").unwrap(), // output writer
).unwrap();

Re-exports§

Enums§

Functions§

  • Encode a png without any compression. Takes advantage of the Non-compressed blocks deflate feature.
  • Get the size of an encoded png. Guaranteed to exactly equal the size of the encoded png.