Hi,


I'm using Apache Commons Imaging to generate 8 bit (indexed) PNG files. 
Unfortunately, there doesn't seem to be way to supply a custom color palette. 
In particular, I'd like to use Wu's color quantization algorithm, 
https://gist.github.com/bert/1192520.


Would a patch or PR allowing an (optional) custom PaletteFactory to 
PngWriter.writeImage()<https://github.com/apache/commons-imaging/blob/master/src/main/java/org/apache/commons/imaging/formats/png/PngWriter.java#L324>
 be welcome? I can then supply my own version of the PaletteFactory, but 
introducing an interface would be even cleaner I suppose.



Kind regards,


Jeroen.


---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org
For additional commands, e-mail: dev-h...@commons.apache.org

Reply via email to