Simple images in the epub

3 posts / 0 new
Last post

I am trying to put 2 simple images into my epub. I have run it through the validatior (online) and i am getting these error messages, not sure how to go about fixing.

error 1
WARNING Imperial Eagle.htm -1 -1 Filename contains spaces. Consider changing filename such that URI escaping is not necessary!

this one was simple i removed the spaces.

error 2
WARNING -1 -1 item (Imperial Eagle.htm) exists in the zip file, but is not declared in the OPF file

when looking through the opf file i can clearly see the file referenced as shown below
"" <manifest>
<item id="toc" href="toc.ncx"
media-type="application/x-dtbncx+xml" />
<item id="cover" href="Images/cover.jpg"
media-type="image/jpeg" />
<item id="CoverPage" href="CoverPage.html"
media-type="application/xhtml+xml" />
<item id="TableOfContents" href="TableOfContents.html"
media-type="application/xhtml+xml" />
<item id="style" href="style.css"
media-type="text/css" />
<item id="HLC-001" href="HLC-001.htm"
media-type="application/xhtml+xml" />
<item id="ImperialEagle" href="ImperialEagle.htm"
media-type="application/xhtml+xml" />""

and again in the spine

<spine toc="toc">
<itemref idref="CoverPage" linear="no"/>
<itemref idref="TableOfContents"/>
<itemref idref="HLC-001"/>
<itemref idref="ImperialEagle"/>

not sure what i am supposed to do to to fix this. can any one help?

The error is reporting the filename with a space in it "Imperial Eagle.htm" is included in the zip container, but you're referencing the name without a space in the OPF.

Sounds like you still have a copy of the original file in the container. Deleting it should do the trick.

Secondary menu