![]() |
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? :blink: |
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. |
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. |
Quote:
|
| All times are GMT -4. The time now is 06:45 PM. |
Powered by: vBulletin
Copyright ©2000 - 3.8.5, Jelsoft Enterprises Ltd.
MobileRead.com is a privately owned, operated and funded community.