![]() |
#1 |
Member
![]() Posts: 14
Karma: 10
Join Date: May 2009
Device: Sony 505
|
Calibre ate my images?
Hi all,
Seems my images get lost in translation when converting HTML to ePub. In HTML it looks like this: <p class="p"> <a name="bju11304.19022009134000_0001"/> <div class="imageholder"> <div class="head">Inhoud burgerlijk recht</div> <div class="image"> <img src="images/bju11304.19022009134000_0001.jpg"/> </div> </div> </p> Calibre translates it to: <p class="p"> <a name="bju11304.19022009134000_0001" id="bju11304.19022009134000_0001"/> </p> <div class="imageholder"> <div class="head">Inhoud burgerlijk recht</div> <div class="image"> <img/> </div> </div> Any ideas what's the cause of this? |
![]() |
![]() |
![]() |
#2 |
Wizzard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 1,402
Karma: 2000000
Join Date: Nov 2007
Location: UK
Device: iPad 2, iPhone 6s, Kindle Voyage & Kindle PaperWhite
|
At a guess, it can't find the image? Any chance that there's a problem with permissions or filename case-sensitivity? Try copying one to the same folder as the HTML, renaming it to something like 'image1.jpg' then seeing if that works?
Any chance the image formats are non-standard? Run the conversion from a command-line ('html2epub', maybe?) & see if any warning messages? |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Member
![]() Posts: 14
Karma: 10
Join Date: May 2009
Device: Sony 505
|
Looks like your first guess is the right one: Calibre automatically checks of the referenced images are present. When I use a bogus URL, it translates to this:
<p class="p"> <a name="bju11304.19022009134000_0004" id="bju11304.19022009134000_0004"/> </p> <div class="imageholder"> <div class="head">Gevolgen handelen zonder volmacht</div> <div class="image"> <img src="http://images/bju11304.19022009134000_0004.jpg"/> </div> </div> My idea was to first convert an HTML-file to an ePub, then manually sticking the images in the right folder and re-compressing the ePub. I'm just testing with ePub anyway, so lots of would-be-eBooks aren't complete yet. Is there a way to have Calibre *not* check if the images are present, so the IMG SRC gets translated even if there's no image yet to be referenced? |
![]() |
![]() |
![]() |
#4 |
Enthusiast
![]() Posts: 32
Karma: 10
Join Date: Sep 2007
Device: Android phone + PRS-505
|
What I'd suggest is using place-holder images. Maybe create something simple in a paint program. For every image you want to be included, copy the place-holder image to the right name. You can then update the images later.
|
![]() |
![]() |
![]() |
Tags |
calibre, ebooks, epub, html2epub, image |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
HTML + Images = MOBI without Images | SunLight | Amazon Kindle | 5 | 08-25-2012 02:27 PM |
Calibre epub images on a PocketBook 360 | jackie_w | Calibre | 22 | 05-12-2010 09:38 PM |
Images on calibre | =X= | Calibre | 13 | 04-14-2009 07:15 PM |
Images | Hunterpub | Introduce Yourself | 5 | 04-13-2009 07:26 PM |
No images | anelson87 | Sony Reader | 1 | 01-03-2009 05:00 PM |