openpreserve / jhove

File validation and characterisation.
http://jhove.openpreservation.org
Other
171 stars 79 forks source link

Not flagging invalid JPEG 2000 capture resolution #733

Open slabrams opened 2 years ago

slabrams commented 2 years ago

The JPEG 2000 module does not report invalid capture resolution. According to ISO/IEC 15444-1, Table I.20, the values of VRcN and HRcN (the vertical and horizontal grid resolution numerator) in the Capture Resolution box ("resc") must be greater than or equal to 1. However, the module does not report instances where these values are 0, which makes the file both not well-formed and invalid. I suspect the same thing applies with the Default Resolution box ("resd").

carlwilson commented 2 years ago

We will be investigating this for the next 1.28 release.