![]() |
#1 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
HTML2LRF and inline pictures
I wonder: How exactly does HTML2LRF decide what to do with pictures? I have a book where there is a paragraph with several inline pictures (running as a part of the text). All images are done with exactly the same HTML code (except for a different SRC and ALT, obviously), yet HTML2LRF treats some as inline and others as block (breaking the paragraph before and after).
|
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
It's based on image size relative to page size
|
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Can I somehow force HTML2LRF to keep some images (identified by ID, CLASS, whatever) inline? Even ALL images would be fine if it was an option, e.g. --keep-all-images-inline - after all, I can always change images to blocks if I need to by putting them inside DIV or P tags.
|
![]() |
![]() |
![]() |
#4 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
At the moment there isn't.
|
![]() |
![]() |
![]() |
#5 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
"At the moment"? Dare I hope for this function in future versions? :-)
|
![]() |
![]() |
Advert | |
|
![]() |
#6 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
why dont you just switch to epub output?
|
![]() |
![]() |
![]() |
#7 |
Guru
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 610
Karma: 4150
Join Date: Mar 2008
Device: Sony Reader PRS-T3, Kobo Libra H2O
|
Because EPUB is slower to display than LRF, the intra-document links are extremely slow compared to intra-document links in LRF and the text is not justified on my PRS-505.
It makes no difference to me which format is "more readable" or "more compatible" since I keep the original files in pure HTML and batch-convert them as needed - so if a better support for EPUB comes out in future firmware, I will simply run one command ang get all my books converted to the new format. But at the moment, LRF is simply better. |
![]() |
![]() |
![]() |
#8 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
|
Hi, I'm having the same problem with inline images as Pepak.
Won't you please consider giving us more control over image placement with lrf? If that's not possible could you please tell me the image dimensions that will cause a page break? I have an image that fills less than 1/2 of the page and yet it still causes a new page. I really want it to stay inline. |
![]() |
![]() |
![]() |
#9 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,160
Karma: 27110894
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
Page break only happens if the image is > 375 pixels in height. If you're seeing a page break for a small image, it's happening for some other reason
|
![]() |
![]() |
![]() |
#10 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
|
Thanks for that information! It would be nice to have a little more control though, sometimes several lines of text could easily follow that size of image.
Btw my image was 400px in height. |
![]() |
![]() |
![]() |
#11 |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
|
Hi again,
I have an image that is 463 x 136 pixels and no matter what I do I cannot get it to center horizontally. I have smaller pixel width images and they center just fine -- is there a magic pixel width to get an image to center? PS. Have tried CSS img {text-align: center; }, div=align center and using an inline style on the img tag (as in your demo): style= "text align: center" but nothing seems to be able to center this image. |
![]() |
![]() |
![]() |
#12 | |
Enthusiast
![]() Posts: 26
Karma: 10
Join Date: Oct 2008
Location: Winnipeg, Canada
Device: Sony PRS700
|
Quote:
|
|
![]() |
![]() |
![]() |
#13 |
Resident Curmudgeon
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 78,985
Karma: 144284074
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
|
bump!
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Word Macro: Footnotes to inline text ? | Hadrien | Workshop | 17 | 10-08-2011 01:28 PM |
inline page markers overtop of text?? | Stinger | Kobo Reader | 9 | 05-28-2010 05:42 PM |
Calibre email inline text? | squawker | Calibre | 2 | 05-26-2010 06:17 PM |
Trying to make an Inline TOC | crutledge | Sigil | 2 | 05-09-2010 05:46 AM |
inline images - html2lrf Converter in libprs500 | benong | Calibre | 7 | 02-08-2008 11:07 PM |