quintusdias / glymur

Python interface to OpenJPEG library for reading and writing JPEG 2000 images.
MIT License
58 stars 24 forks source link

Don't error out trying to read JPH files with Jp2k #660

Closed quintusdias closed 2 months ago

quintusdias commented 2 months ago

Should add some limited jph support, just enough to read files.

Currently JPH files can be read by Jp2kr, but not Jp2k, which should not be.

InvalidJp2kError: The file is invalid because the codestream could not be parsed:  "Invalid codestream marker at byte offset 2.  It must be must be greater than 0xff00, but found 0x000c instead.  Codestream parsing will cease."