Skip to content
EPUBCheck · Images, audio and media overlays

MED-004

Updated:

EPUBCheck MED-004 is an error message: “Image file header may be corrupted.” An image file's header looks damaged, so the image may not display.

The official message

Image file header may be corrupted.

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 in a copy or saved by a faulty tool.

How to fix it

  • Re-export the image from its source and replace the file.

Terms used here

Other MED messages

  • MED-003 Picture "img" elements must reference core media type resources, but found resource "…" of type "…".
  • MED-009 The time specified in the clipBegin attribute must not be the same as clipEnd.

Message text and severity from EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Explanation by EPUBLab.

FAQ

What does EPUBCheck MED-004 mean?

EPUBCheck MED-004 is an error message: “Image file header may be corrupted.” An image file's header looks damaged, so the image may not display.

Is MED-004 an error?

MED-004 is reported as error by default. 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.