jhove
jhove copied to clipboard
JPEG-HUL-12: Potential false positive for Adobe marker segment transformFlag
I've come across a potential false positive for JPEG-hul error message JPEG-HUL-12. I'm attaching the file. The error states that the bad transformFlag has the value 68 in the Adobe marker segment (app14 in jpeg). However, when extracting app14 with exiftool all tags including the Color Transform show up ok. Color Transform value reads as YCbCr which is value 1 according to the spec. This value appears to be in offset 81, if I'm not mistaken.
The following segment of the code seems to be responsible for checking the Adobe / app14 chunk. I'm not fluent enough in Java to find the error though or evaluate what exactly is extracted as the Adobe chunk: https://github.com/openpreserve/jhove/blob/47f077fcb09d3dd5720aeeb4abf27de5dac48d19/jhove-modules/jpeg-hul/src/main/java/edu/harvard/hul/ois/jhove/module/JpegModule.java#L1440
I'm also attaching the file to reproduce the error.