#png #bindings #ffi #codec

deprecated sys libpng-sys

Unreliable bindings for libpng 1.6. They're likely to bring sorrow and regret. Please use a native Rust PNG library instead (e.g. LodePNG 2.0)

2 stable releases

1.1.9 Aug 15, 2022
1.1.8 Oct 2, 2019
1.1.7 Aug 2, 2019
1.1.6 Jul 27, 2019
0.1.1 Jun 16, 2017

#175 in #png

Download history 193/week @ 2024-03-14 211/week @ 2024-03-21 156/week @ 2024-03-28 181/week @ 2024-04-04 198/week @ 2024-04-11 185/week @ 2024-04-18 274/week @ 2024-04-25 264/week @ 2024-05-02 183/week @ 2024-05-09 182/week @ 2024-05-16 180/week @ 2024-05-23 176/week @ 2024-05-30 140/week @ 2024-06-06 375/week @ 2024-06-13 377/week @ 2024-06-20 192/week @ 2024-06-27

1,111 downloads per month
Used in pngquant

Libpng license

1MB
25K SLoC

C 23K SLoC // 0.2% comments Rust 1K SLoC // 0.0% comments GNU Style Assembly 205 SLoC // 0.1% comments

Rust bindings for libpng 1.6.

libpng is likely to bring sorrow and regret. I strongly recommend to use a native Rust PNG library instead (e.g. LodePNG).

This crate bundles libpng 1.6.37 as a fallback. Please check whether this version is still secure before using this package.


lib.rs:

This is not the documentation you're looking for

See libpng documentation instead.

Consider using a native Rust PNG library instead (e.g. LodePNG 2.x).

Dependencies

~0.8–1.1MB
~22K SLoC