Recommended PNG libraries

I want to encode / decode PNG images and wanted to hear which libraries people had a good experience with.

There’s zigimg. I don’t like its API, but it exists and everyone uses it:

1 Like

I also have a build.zig for libspng, a simple and fast C PNG library, here:

https://codeberg.org/cn-cn-cn/spng

1 Like

Thank you, I will try these out.

Depending on your use case and if you don’t care much about performance: stb_image[_write] is quite good. It CAN’T be used with Translate-C but it is just a C code in .h file so you can pretend it is C and compile it as single source C library

1 Like