#write #standalone #png #mini #rgba #image #uncompressed

png_encode_mini

Mini stand-alone PNG crate which writes out uncompressed RGBA image files

3 releases

Uses old Rust 2015

0.1.2 Nov 29, 2016
0.1.1 Nov 29, 2016
0.1.0 Nov 27, 2016

#6 in #uncompressed

Download history 1/week @ 2024-01-08 3/week @ 2024-02-12 41/week @ 2024-02-19 53/week @ 2024-02-26 16/week @ 2024-03-04 23/week @ 2024-03-11 15/week @ 2024-03-18 10/week @ 2024-03-25

65 downloads per month

Apache-2.0

8KB
188 lines

PNG Encode Mini

Tiny PNG writing utility, without any dependency on zlib or libpng, useful when only basic functionality is required.

Exposes a single method write which takes RGBA pixel-data, with width and height arguments.

Tests

Currently the tests use ImageMagick convert and compare commands to validate the output images can be read.

Further Work

While this crate is intentionally kept small, there are some possible additions.

  • Writing grey-scale images.
  • Writing RGB images (without an alpha channel).

No runtime deps