#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

#165 in #png

Download history 186/week @ 2024-01-09 127/week @ 2024-01-16 105/week @ 2024-01-23 137/week @ 2024-01-30 125/week @ 2024-02-06 181/week @ 2024-02-13 156/week @ 2024-02-20 145/week @ 2024-02-27 156/week @ 2024-03-05 186/week @ 2024-03-12 214/week @ 2024-03-19 149/week @ 2024-03-26 190/week @ 2024-04-02 189/week @ 2024-04-09 175/week @ 2024-04-16 248/week @ 2024-04-23

846 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

~4MB
~61K SLoC