12-17-2009, 03:00 AM | #1 |
Becalmed
Posts: 29
Karma: 6172
Join Date: Oct 2009
Location: Tennessee USA
Device: Two Sony PRS505 (Breeding pair)
|
Missing images
Hi
Am trying to create an EPUB from a HTML file (saved from Open Office) and am slowly going bonkers. The HTML loads in Open Office and in my browser perfectly OK. All images are stored in the same path as the HTML file. The following line is in the HTML file: <P ALIGN=CENTER><IMG SRC="cover.png" NAME="graphics1" ALIGN=BOTTOM WIDTH=510 HEIGHT=680 BORDER=0></P> However, when I open the HTML file in Sigil this becomes: <p ALIGN="CENTER"><img SRC="../images/img0001.png" ALIGN="BOTTOM" WIDTH="510" HEIGHT="680" BORDER="0" NAME="graphics1" /></p> This points to a source image which does not exist and thus does not display. Anyone any ideas why Sigil does this, and how to make it work? |
12-17-2009, 09:13 AM | #2 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
When Sigil loads your HTML file, it parses it and catches all the image references. These images are then copied to a temporary folder from which they are loaded on demand when they need to be displayed. As you have seen, the images are also renamed and all paths are updated (with a hidden relative path part).
Now, if your image fails to display, then that means something went wrong during the loading process. Image loading is actually now pretty robust, this really shouldn't be happening. Create an issue on the tracker and attach your HTML file structure (along with the images etc). Follow these instructions. |
Advert | |
|
12-18-2009, 01:20 PM | #3 |
Becalmed
Posts: 29
Karma: 6172
Join Date: Oct 2009
Location: Tennessee USA
Device: Two Sony PRS505 (Breeding pair)
|
Thanks Valloric
Well, that was a DOHH! moment for me. As soon as I woke the following day I realised what was happening with the renaming and pathing, and your reply confirms. I must have been wearing my stupid head that night.
Of course the images still don't display. Funny thing is that if I open the epub or sgf as an archive I can see the images are there and will display in a viewer if I extract them. They don't display in Calibre or on my reader either, though they did before I edited the base HTML in Open Office. I don't think its your program doing it though. There's something fundamental in the format of this file. |
12-18-2009, 02:03 PM | #4 |
Created Sigil, FlightCrew
Posts: 1,982
Karma: 350515
Join Date: Feb 2008
Device: Kobo Clara HD
|
If you create an issue and attach the epub, I can make sure it's not Sigil. If it is, it will be fixed. If it's not, I'll be able to tell you if there's something else going on.
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
nytimes, missing images in EPUB | ees | Recipes | 2 | 11-17-2018 08:47 AM |
HTML + Images = MOBI without Images | SunLight | Amazon Kindle | 5 | 08-25-2012 02:27 PM |
Hello, this is what I've been missing. | Elimad | Introduce Yourself | 10 | 06-24-2010 08:06 PM |
Missing covers, missing content. Getting worse with each sync. | Mememememe | Kobo Reader | 7 | 06-16-2010 09:02 AM |
What am I missing here? | SoonerGirl | ePub | 3 | 01-08-2010 07:56 PM |