Forgot to mention, this is all with the current master on github (3.1.0?). I've also seen the same behaviour in v3.0.23.
Issues decoding JPEG-LS pixel data
Yep, that worked, thanks Mathieu!
OK, thanks, I'll give that a try
Possible memory de/allocation errors with SWIG + Python
I've been encoding using JPEG2000Codec directly. The only other issue is #523 (Python SWIG). If you're happy with that patch I can submit another PR just for that. Otherwise I'll leave it to you.
Python SWIG error with ImageCodec
gdcmconv - JPEG2000 - PI/MCT issue