So I'm trying to encode some animated gif files in my Java application. I've been using some classes/algorithms found online, but none seem to be working well enough.
Right now I'm using this quantize class to reduce the colors of an image down to 256: http://ift.tt/1Is959L
The problem is, it doesn't seem to be very "smart."
If I pass in an image with more than 256 colors, it does reduce the color number, but not very well. (Reds turn blue, etc - very obvious errors like this).
Are there any other algorithms/libraries for color quantization in Java that you can recommend?
Note: I'm aware of Neuquant, used in this algorithm: http://ift.tt/1DVFyX3
It is very slow and produces "eh" results (colors flickering between frames).
Aucun commentaire:
Enregistrer un commentaire