Validation error after changing image
Learn / Forums / EPUB and eBook / Validation error after changing image
- This topic has 8 replies, 3 voices, and was last updated 7 years ago by George Krompacky.
-
AuthorPosts
-
-
May 4, 2017 at 12:55 pm #94212George KrompackyParticipant
In a completed (and valid) ePub, I had a couple images that were originally .jpg but I replaced them with (larger) .pngs because they were text and/or line drawings.
I changed all the references and item properties to match the .png files, but I am still getting a validation error from one chapter that calls up an image.
This is the problematic line:
< p class=”timg”></p >
The error is “Referenced resource could not be found in the EPUB.”
So I’m stumped. The image is in the right directory, it has the right name, and it seems to be referenced properly. The related code in the package.opf is
<item id=”f136″ href=”images/f136.png” media-type=”image/png”/>
Any thoughts? The version using the .jpg has the same code except, of course, “jpg” replaces “png.” The really odd thing is that there are two images that I changed but only one is producing an error.
-
May 4, 2017 at 12:58 pm #94214George KrompackyParticipant
Ugh can anyone tell me how to format the code so it doesn’t get parsed?
-
May 4, 2017 at 1:06 pm #94215George KrompackyParticipant
Tried putting in code tags in brackets but that didn’t work…
-
May 4, 2017 at 1:09 pm #94217Aaron TroiaParticipant
Your last HTML tag (before you edited it), is still is referencing the JPG
-
May 4, 2017 at 1:18 pm #94219George KrompackyParticipant
Sorry, that was just frustration trying to get the forum to read correctly and I copy and pasted from wrong doc. The problem file did have .png specified.
-
May 4, 2017 at 1:27 pm #94221George KrompackyParticipant
On the other hand, maybe you were right. Too many windows open, too many files, looks like it is validating now. Thanks for un-stupifying me.
-
May 4, 2017 at 1:35 pm #94222Aaron TroiaParticipant
oh good, I’m glad its working now. And trust me, we’ve all been there.
-
-
May 4, 2017 at 1:26 pm #94220Kai RübsamenMember
It’s clear, that you have a typo in the file. Did you use the epubchecker from pagina? > If not, this app shows you exactly the lines where you have problems and you can repair them.
Kai
-
May 5, 2017 at 11:07 am #94270George KrompackyParticipant
Yes, I used the validator and saw the error but when I went to the location, it seemed to be correct. Probably what had happened was that I validated the old version instead of the new version, and stumped myself LOL.
-
-
-
AuthorPosts
- You must be logged in to reply to this topic.