EPUBCheck MED-003: img in picture non di tipo core
Aggiornato:
EPUBCheck MED-003 è un messaggio di errore: “Picture "img" elements must reference core media type resources, but found resource "…" of type "…".” Un img all'interno di un elemento picture punta a un'immagine in un formato che non è un tipo di media core. All'interno di picture, l'img deve sempre fare riferimento a un tipo di immagine core (JPEG, PNG, GIF, WebP o SVG) affinché ogni app di lettura possa visualizzarlo; EPUBCheck nomina il file e il suo tipo.
Il messaggio ufficiale
Picture "img" elements must reference core media type resources, but found resource "%1$s" of type "%2$s".
- Gravità predefinita
- Errore. Il EPUB viola una regola della specifica ed è non valido. I negozi e Invia a Kindle potrebbero rifiutarlo, e EPUBCheck esce con stato 1.
- versione EPUBCheck
- 5.4.0
%1$s, %2$s… sono completati con il file, valore o elemento EPUBCheck trovato.
Cause tipiche
- TIFF, BMP, HEIC o altri formati che le app di lettura non sono obbligate a visualizzare.
- Un elemento immagine scritto per il web, con il formato moderno in img e la retrocompatibilità in source.
Come correggerlo
- Converti l'immagine in JPEG, PNG, GIF, WebP o SVG e aggiorna il src e il tipo media del manifesto.
- Se vuoi offrire un altro formato, mettilo in un elemento source con un attributo type e mantieni un formato core nell'img.
- Ricostruisci il EPUB e riesegui EPUBCheck di nuovo per confermare che il messaggio sia scomparso.
Quando non è questo
Se un elemento sorgente nell'immagine manca di un attributo di tipo per un formato estero, ciò è MED_007.
Termini usati qui
Altri messaggi di MED
MED-004Image file header may be corrupted.MED-005Media Overlay audio reference … to non-standard audio type … found.MED_007Picture "source" elements must define a "type" attribute when they reference foreign resources; found resource "…" of type "…".MED-008The time specified in the clipBegin attribute must not be after clipEnd.MED-009The time specified in the clipBegin attribute must not be the same as clipEnd.MED_010EPUB Content Documents referenced from a Media Overlay must specify the "media-overlay" attribute.
Fonti
- EPUB 3.3, §3.5.2.2 HTML img fallbacks · leggi
- EPUB 3.3, §3.2 Core media types · leggi
Testo e gravità del messaggio da EPUBCheck 5.4.0 (W3C, BSD-3-Clause). Spiegazione di EpubCC.