jhove icon indicating copy to clipboard operation
jhove copied to clipboard

EPUB Module: false positives for PKG-021 "Corrupted image file encountered"

Open asciim0 opened this issue 3 years ago • 2 comments

The epub module throws false positives for PKG-021 "corrupted image file encountered". Validity of the image can be easily checked by either rendering the epub or unpacking the epub and analyzing the image under the path given in the error message (e.g. [Corrupted image file encountered.]; OEBPS/images/picture0.jpg).

This bug has existed for quite some time and is also documented in the w3c repo, where a sample file is attached: https://github.com/w3c/epubcheck/issues/850

asciim0 avatar Jan 17 '22 14:01 asciim0

The linked issue in EPUBCheck is closed and was released as part of EPUBCheck 4.1.1. The most recent JHOVE release uses EPUBCheck 4.2.2. The sample file they provide does not produce the error any more, so this may be a different issue that needs to be [re-]opened on the W3C GitHub. Are you able to share the JPEG that is causing the false positive?

karenhanson avatar Jan 18 '22 19:01 karenhanson

@asciim0 can I also ask if it's possible to test if this is still an issue and provide a test file it is, please?

carlwilson avatar Jun 15 '22 15:06 carlwilson