Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre

Notices

Reply
 
Thread Tools Search this Thread
Old 05-27-2009, 06:02 AM   #1
Portnull
Member
Portnull began at the beginning.
 
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?
Portnull is offline   Reply With Quote
Old 05-27-2009, 06:23 AM   #2
gwynevans
Wizzard
gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.gwynevans ought to be getting tired of karma fortunes by now.
 
gwynevans's Avatar
 
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?
gwynevans is offline   Reply With Quote
Old 05-27-2009, 07:10 AM   #3
Portnull
Member
Portnull began at the beginning.
 
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?
Portnull is offline   Reply With Quote
Old 05-28-2009, 10:57 AM   #4
WayneD
Enthusiast
WayneD began at the beginning.
 
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.
WayneD is offline   Reply With Quote
Reply

Tags
calibre, ebooks, epub, html2epub, image


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 09:02 PM.


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