The best antialiasing library in C

I am developing a texture atlas packer for use with OpenGL, and now I am looking for an open source (better if it is a library, but open source software would be nice!) A solution that will give the best results for creating / smoothing the color palette. It really does not have to be fast, but for optimal results. It would be better if it were possible to generate 4-bit palettes per pixel.

+5
source share
3 answers

pngquant is available as a clean C library .

ImageMagick uses octtree , which is fast but not the best quality.

pngquant uses MedianCut with a few additional enhancements and is likely to give higher quality.

pngquant has a speed / quality compromise setting that can improve the quality a bit further, and also has a custom anti-aliasing algorithm (modified by Floyd-Steinberg) that does not add noise to well-quantized areas of the image.

+4
source

Imagemagick is a very powerful C library for graphical manipulation: http://www.imagemagick.org/ It has command line tools, but can also be used as a C library.

+3
source

For future reference, I found PNGNQ , which is a pretty good library for image quantization. Their patterns are amazing.

+2
source

All Articles