Package: iipimage-server Version: 0.9.9-2 <https://packages.debian.org/source/unstable/iipimage>
Thanks very much for your detailed response. It explains a lot to me! Now I know why the problem jp2 file is rendered differently with different software (perfect with kdu_show, inverted with Mac Preview and IIP image server, inverted with a red background with IrfanView on Pcs, etc.) The software we use here to render images is IIP image server, and it displays inverted images (probably because it doesn¹t check the jp2 colour palette). So I¹m thinking of encoding the files to a raw codestream to lose the palette as you suggested. It fixes the problem however the size of the raw codestream (j2c) seems to be much bigger than the corresponding jp2 or jpx file. Do you know of any way to make the file size smaller?