Is there a library for optimizing PNG

I know pngcrush, optiPNG, etc., but they are all just command line tools. I need a DLL that I could use inside the application. It's hard to believe that such a thing does not exist ... but I could not find it.

To make things clear: I need this for 32-bit ARGB images, so 8-bit conversion is not an option. I need real optimization.

I would like to use the library in a .net application, but I can do P \ Invoke, so managed code is not needed.

+4
source share
2 answers

Optipng recently added a library API .

If you need 32-bit for the alpha channel only, see pngquant - 8-bit PNG files support RGBA colors (full alpha)) (and not in Photoshop).

+1
source

What I'm using is ZopfliPNG . It is based on Google’s new zopfli algorithm.

Check out my open source program that uses ZopfliPNG if you need an example.

0
source

Source: https://habr.com/ru/post/1379662/


All Articles