openpreserve / jpylyzer

JP2 (JPEG 2000 Part 1) validator and properties extractor. Jpylyzer was specifically created to check that a JP2 file really conforms to the format's specifications. Additionally jpylyzer is able to extract technical characteristics.
http://jpylyzer.openpreservation.org/
Other
69 stars 28 forks source link

jpylyzer failing on compressed CMYK file with valid enumcs value of 12 #186

Closed boxerab closed 2 years ago

boxerab commented 2 years ago

cmyk_no_wavelet.zip

    <isValid format="jp2">False</isValid>
    <tests>
        <jp2HeaderBox>
            <colourSpecificationBox>
                <enumCSIsValid>False</enumCSIsValid>
            </colourSpecificationBox>
        </jp2HeaderBox>
bitsgalore commented 2 years ago

According to Table I.10 in 15444-1:2004(E), only 16, 17, and 18 are legal EnumCS values in JP2 (with no support for CMYK cs). So unless this has changed in some amendment to the standard that I'm unaware of (in which case please let me know!), jpylyzer's behavior here looks correct to me.

boxerab commented 2 years ago

ahhh, right you are. This is a Part II enumcs.