12-08-2021, 01:32 PM | #1 |
Junior Member
Posts: 1
Karma: 10
Join Date: Dec 2021
Device: iPad
|
D2D Validation errors
I am receiving 2 validation errors for an epub file submitted to D2D. The error messages are:
ERROR(RSC-001): .tmp.tmp1s3h5q2r.epub(-1,-1): File 'img1.png' could not be found. ERROR(RSC-001): .tmp.tmp1s3h5q2r.epub(-1,-1): File 'img2.png' could not be found. Other than the book cover image, the book only contains 2 images, and both are jpg...not png, and when I download the D2D-generated epub, both images display perfectly in multiple e-reader apps, and all text and formatting is perfect. D2D support states that this is a problem with the submitted HTML code, and that I need to resolve the issue with the developer that generated the HTML. There are no references in the XHTML files, or in the CSS to any png files, so I'm at a loss. Does anyone have a suggestion about what I can try next? Any help is much appreciated! |
12-08-2021, 01:53 PM | #2 |
Grand Sorcerer
Posts: 28,040
Karma: 199464182
Join Date: Jan 2010
Device: Nexus 7, Kindle Fire HD
|
That's a partial conversion error of some kind, so the files and filenames mentioned are probably not going to come from the original epub that was submitted. As such, they're not very useful in diagnosing the problem either.
The best thing you can do is make sure your epub validates without errors or warnings (using either the epubcheck plugin for Sigil, or the online epubcheck validator) before submitting to D2D. If you're not actually submitting an epub, then the Sigil forum is not really the place for this question. |
Advert | |
|
12-08-2021, 07:50 PM | #3 | ||
Wizard
Posts: 2,304
Karma: 12587727
Join Date: Jul 2012
Device: Kobo Forma, Nook
|
Quote:
What if you do a Tools > Reports > Image Files. Do those img1.png + img2.png show up in the Report? In the "Times Used" column, they'll probably say 0. You can Right-Click on the images there, and "Delete From Book". Quote:
Could've been some phantom files leftover from a conversion or a previous source file. |
||
12-08-2021, 11:18 PM | #4 |
A Hairy Wizard
Posts: 3,225
Karma: 19000635
Join Date: Dec 2012
Location: Charleston, SC today
Device: iPhone 15/11/X/6/iPad 1,2,Air & Air Pro/Surface Pro/Kindle PW & Fire
|
Are they listed in the .opf ?? If so, delete those lines.
|
12-10-2021, 08:57 PM | #5 |
Witchman
Posts: 628
Karma: 788808
Join Date: May 2013
Location: Philippines
Device: Android S5
|
@WaltWM . . .I'm just guessing but your image problems might be caused because your images were in base64 binary format(instead of being link referenced in jpeg format) when you converted to epub. For instance, I know that it is certainly possible to save all doc images in base64 binary format when you save your doc in LibreOffice Writer or OpenOffice Writer for instance.
Base64 format just saves the images in full binary format within the epub html itself. Of course, saving images like this is quite messy and not really in accordance with the epub standard. So it's not that surprising that base64 binary format is usually disallowed in favor of referencing your image directly from within the Images dir in the epub. In html, base64 binary format looks like this(see Spoiler): Spoiler:
Whereas an acceptable image that has been properly added and referenced from the epub's Images directory, looks like this: <p class="center"><img style="width: 25%;height: auto;" alt="My image" id="My_Image" src="../Images/my_image.jpg"/></p> Really, using Sigil, what you need to do is just check that your images have NOT been saved and inserted in base64 binary format within your epub. I would simply use Sigil to inspect your epub images within the relevant xhtml files your epub. And if they are formatted in base64 binary format I would simply delete them from the xhtml and then add those same images back into your epub's Images directory. Finally, you should be be able to properly insert your ebook images as acceptable referenced images into your xhtml file by clicking Insert > File using Sigil(free epub editor). But if you are adding a cover image -- you should click Tools > Add Cover to add your cover image. Last edited by slowsmile; 12-11-2021 at 06:45 PM. |
Advert | |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Validation errors | azupak | Sigil | 23 | 05-05-2015 10:43 AM |
Validation Errors | mpresley | ePub | 7 | 10-27-2011 03:41 AM |
Help with validation errors | AThirstyMind | ePub | 2 | 05-13-2011 07:08 PM |
Validation Errors | luthar28 | ePub | 13 | 08-10-2010 01:24 PM |