Validation error after changing image

Learn / Forums / EPUB and eBook / Validation error after changing image

Viewing 4 reply threads
  • Author
    Posts
    • #94212
      George Krompacky
      Participant

      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.

    • #94214
      George Krompacky
      Participant

      Ugh can anyone tell me how to format the code so it doesn’t get parsed?

    • #94215
      George Krompacky
      Participant

      Tried putting in code tags in brackets but that didn’t work…

    • #94217
      Aaron Troia
      Participant

      Your last HTML tag (before you edited it), is still is referencing the JPG

      • #94219
        George Krompacky
        Participant

        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.

      • #94221
        George Krompacky
        Participant

        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.

      • #94222
        Aaron Troia
        Participant

        oh good, I’m glad its working now. And trust me, we’ve all been there.

    • #94220

      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

      • #94270
        George Krompacky
        Participant

        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.

Viewing 4 reply threads
  • You must be logged in to reply to this topic.
>