#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

#188 in #png

Download history 200/week @ 2024-07-21 257/week @ 2024-07-28 242/week @ 2024-08-04 208/week @ 2024-08-11 294/week @ 2024-08-18 512/week @ 2024-08-25 295/week @ 2024-09-01 188/week @ 2024-09-08 349/week @ 2024-09-15 445/week @ 2024-09-22 440/week @ 2024-09-29 387/week @ 2024-10-06 284/week @ 2024-10-13 169/week @ 2024-10-20 169/week @ 2024-10-27 211/week @ 2024-11-03

840 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.3MB
~25K SLoC