PKG-021
Updated:
EPUBCheck PKG-021 is an error message: “Corrupted image file encountered.” An image file inside the EPUB is damaged and cannot be decoded.
The official message
Corrupted image file encountered.
- Default severity
- Error. The EPUB breaks a rule of the specification and is invalid. Stores and Send to Kindle may reject it, and EPUBCheck exits with status 1.
- EPUBCheck version
- 5.4.0
Typical causes
- An image truncated during a copy or download.
- A file with an image extension whose content is something else, such as an HTML error page saved as .jpg.
How to fix it
- Export the image again from its source, replace the file and keep the same name, or update every reference to it.
Terms used here
Other PKG messages
PKG-022Wrong file extension for image. The image is a "…" file but has the file extension "…".PKG-024Uncommon EPUB file extension.PKG-017Uncommon EPUB file extension.PKG-025Publication resource must not be located in the META-INF directoryPKG-016Use only lowercase characters for the EPUB file extension for maximum compatibility.PKG-026Obfuscated resource must be a Font Core Media Type (was declared as "…" in "…").
Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.