andreareider / epubcheck

Automatically exported from code.google.com/p/epubcheck
0 stars 0 forks source link

Confusing error "image is too short" #275

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
PROBLEM:

The error message "image file XXX is too short" is very confusing.
It obviously has nothing to do with the size of the image but with the images 
header information.

com.adobe.epubcheck.bitmap.BitmapChecker.java : line 78

int rd = CheckUtil.readBytes(in, header, 0, 4);
if (rd < 4) {
    report.error(null, 0, 0, "image file " + path + " is too short");

SOLUTION:

At the moment I can't tell a better error message as I don't understand the 
deeper sense of this check. Does it mean the image / header is corrupt?
Or what else?
If someone can tell I'll patch this issue...

Original issue reported on code.google.com by tobias.c...@gmail.com on 31 May 2013 at 9:34

GoogleCodeExporter commented 8 years ago
THIS ISSUE MOVED TO GITHUB:
https://github.com/IDPF/epubcheck/issues/

Original comment by rdeltour@gmail.com on 7 Nov 2013 at 10:49