PR created: https://github.com/apache/commons-imaging/pull/294
Note that simply running 'mvn' after a clean checkout of 'master' fails on JavaDoc generation for 'PhotometricInterpreterPalette', as none of the parameters have JavaDoc. Jeroen. ________________________________ From: Gary Gregory <garydgreg...@gmail.com> Sent: Tuesday, May 23, 2023 1:52:14 PM To: Commons Developers List Subject: Re: [imaging] Allow custom PaletteFactory for writing PNG files. Jeroen, That sounds interesting. Feel free to create a PR on GitHub. Gary On Tue, May 23, 2023, 05:59 Vegt, Jeroen van der <j.van.der.v...@nfi.nl.invalid> wrote: > 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 > > --------------------------------------------------------------------- To unsubscribe, e-mail: dev-unsubscr...@commons.apache.org For additional commands, e-mail: dev-h...@commons.apache.org