Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Formats > ePub

Notices

Reply
 
Thread Tools Search this Thread
Old 05-04-2017, 04:12 PM   #1
kongjie
Junior Member
kongjie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite 3rd Gen.
Validation error after changing image type

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:
Code:
<p class="timg"><img src="images/f136.png" alt="" /></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

Code:
<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.

UPDATE: seems like it is validating now. Might have been a bout of stupidity. Pls. ignore.

Last edited by kongjie; 05-04-2017 at 04:28 PM.
kongjie is offline   Reply With Quote
Old 05-05-2017, 07:08 PM   #2
Tex2002ans
Wizard
Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.Tex2002ans ought to be getting tired of karma fortunes by now.
 
Posts: 2,306
Karma: 13057279
Join Date: Jul 2012
Device: Kobo Forma, Nook
Quote:
Originally Posted by kongjie View Post
UPDATE: seems like it is validating now. Might have been a bout of stupidity. Pls. ignore.
What was your solution? It could be helpful for someone if they find this in the future.
Tex2002ans is offline   Reply With Quote
Advert
Old 05-05-2017, 07:29 PM   #3
kongjie
Junior Member
kongjie began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Jul 2015
Device: Kindle Paperwhite 3rd Gen.
Quote:
Originally Posted by Tex2002ans View Post
What was your solution? It could be helpful for someone if they find this in the future.
It was a process problem. As I'm making changes in an ePub. I keep an old copy of the file in case my changes screw up it and it no longer validates.

I think that the file I was validating was slightly different than the one I was actually working on. So when I checked the file I was working on, the file name was correct, and I got confused.
kongjie is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Validation Error on SVG image No RDF allowed GrannyGrump ePub 5 06-23-2014 06:28 PM
Changing custom columns type? Pepin33 Calibre 4 08-27-2012 08:44 PM
epub validation error -- image not reachable vootie ePub 14 03-08-2012 10:34 AM
Changing the partition type ? rolgiati Kindle Developer's Corner 1 12-08-2011 09:39 PM
Image Validation Error tracyy Sigil 2 10-23-2011 03:42 AM


All times are GMT -4. The time now is 08:21 AM.


MobileRead.com is a privately owned, operated and funded community.