Skip to content

A png when passed thorugh the epubcheck, gets mistaken for JPEG, even tho the magic bytes are correct (when using xxd or hexdump) #1641

@Mathusan

Description

@Mathusan

xxd -l 16 ~/Downloads/655780KgekiXnKUjg2_ce.png
00000000: 8950 4e47 0d0a 1a0a 0000 000d 4948 4452 .PNG........IHDR

but in the epubcheck logs

Header bytes (hex): FF D8 FF E0
image/png

ERROR(OPF-029): New Bok Copy-RMZPfDDsll.epub/OEBPS/images/5cd54d44-2000-4140-856b-5334d53504ca.png(-1,-1): The file "OEBPS/images/5cd54d44-2000-4140-856b-5334d53504ca.png" does not appear to match the media type image/png, as specified in the OPF file.

Why is this

Metadata

Metadata

Assignees

Labels

status: acceptedReady to be further processedtype: false-positiveThis issue is about valid content being incorrectly rejected

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions