View Single Post
Old 10-29-2009, 11:53 PM   #1
jackie_w
Wizard
jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.jackie_w ought to be getting tired of karma fortunes by now.
 
Posts: 4,046
Karma: 8578453
Join Date: Sep 2009
Location: UK
Device: Sony PRS-350, Kobo AuraHD/Aura6"/AuraH2O/GloHD/AuraOne
Help with images in EPUB conversions, please

Please can anyone help me with an aggravation I'm having displaying some images in EPUB on my PRS-505?

The source ebook is HTML/CSS and each image (none are inline images) has HTML code something like :
<p class=aligncentre><img src="images/mypic.png"></p>

This works fine most of the time. However, if the image is too large to display on the PRS-505 then it doesn't display at all. So far I've solved the problem by manually looking for the big images and physically reducing the size before importing to Calibre.

I would like to know whether there is a generic way I can code the HTML and/or CSS such that:-
1. Images which are small enough display at their correct full size.

2. Images which are "too big" are automatically displayed at a reduced size which is guaranteed to display on the PRS-505.

3. Naturally I want the aspect ratio to be preserved in all cases.

4. I don't want to have to manually edit each individual <img> tag.

Any suggestions gratefully received.

Regards, Jackie

P.S. A conversion to LRF seems to scale the big images correctly without taking any special action.
jackie_w is online now   Reply With Quote