Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Corrupted image file encountered. #850

Closed
bitcoin333 opened this issue Jun 6, 2018 · 1 comment
Closed

Corrupted image file encountered. #850

bitcoin333 opened this issue Jun 6, 2018 · 1 comment
Assignees
Labels
status: has PR The issue is being processed in a pull request type: bug The issue describes a bug
Milestone

Comments

@bitcoin333
Copy link

I have an epub which gives no error when validted by epubcheck.
But I wanted to decrease the epub size, so I compressed the jpeg images in Calibre with lossy compression. After that epubcheck gives an error message for every jpeg file: "Corrupted image file encountered."

See the attached image as an example for "corrupted image file".

w=mc^2

@rkwright
Copy link

@bitcoin333 Reproduced this with EPUBCheck 4.0.3 on a MacPowerBook running 10.12.6. Interestingly, while developing the EPUB, there were a few minor errors (incorrect OPF, etc.). When those were eliminated, EPUBCheck returned the error

ERROR(PKG-021): ./Tiny-Corrupt-Image.epub/OPS/images/corrupted.jpg(-1,-1): Corrupted image file encountered.

But the file is NOT corrupted according to Preview and Photoshop

Attached is the EPUB file (with zip extension).
Tiny-Corrupt-Image.zip

@rkwright rkwright added the type: bug The issue describes a bug label Sep 11, 2018
@tofi86 tofi86 added the status: ready for implem The issue is ready to be implemented label Sep 11, 2018
@rdeltour rdeltour self-assigned this Jan 18, 2019
@rdeltour rdeltour added this to the 4.1.1 milestone Jan 18, 2019
rdeltour added a commit that referenced this issue Jan 18, 2019
Improves the JPEG parsing by updating the TwelveMonleus ImageIO plugin
to latest version 3.4.1.

Fixes #850
@rdeltour rdeltour added status: has PR The issue is being processed in a pull request and removed status: ready for implem The issue is ready to be implemented labels Jan 18, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
status: has PR The issue is being processed in a pull request type: bug The issue describes a bug
Projects
None yet
Development

No branches or pull requests

4 participants