jhove
jhove copied to clipboard
EPUB Module: false positives for PKG-021 "Corrupted image file encountered"
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
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?
@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?