Artihmetic/Huffman lossless jpeg
I've been having issues with one of the readers that I use for testing images I produce when viewing lossless jpegs. The images are being wrapped in a NSIF/NITF file. The application can view the intermediate lossless jpeg that imageio produces, but when in a NITF file it contains lots of white pixesl/artefacts and some artefacts that span a line.
I initially thought it was a problem with the predictor values, as the artefacts changed when I manually set the values. It's currently not possible to set the predictor values through the imageio interface, although I notice there is an enhancement request 'in progress'. Can anyone say how it is progressing/when it's likely to be made available?
I now believe the issue is that the imageio is encoding the JPEG lossless using the Huffman principle (process 1), where as the NITF reader is expecting it encoded using the arithmetic (process 2). I understand the latter is normally avoided, but is there any easy way or translating between the two, or does anyone know of an encoder that can encode a Lossless jpeg with arithmetic processing (assuming ImageIO can't).