![]() |
#1 |
Member
![]() Posts: 21
Karma: 84
Join Date: Feb 2015
Device: Kindle Voyage, Kobo Glo
|
2.41: Pictures are not shown right in preview
I've updated to 2.41.
Now the preview of the editor does not honour the style of pictures. See the example: style is height:100% and max-width: 100% But the preview just shows a tiny picture (witch has not many px); before 2.41 the preview took the css and not just the px |
![]() |
![]() |
![]() |
#2 |
creator of calibre
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 45,534
Karma: 28548962
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
That's because the preview was changed to render in XHTML mode, for other reasons. If you want full screen images, you should be using SVG, not an img with height:100%
Last edited by kovidgoyal; 10-16-2015 at 02:46 AM. |
![]() |
![]() |
![]() |
#3 |
Member
![]() Posts: 21
Karma: 84
Join Date: Feb 2015
Device: Kindle Voyage, Kobo Glo
|
Ok. I understand.
Unfortunately I don't want to use svg, because for me it has disadvantages. So I think, I have to live with that. |
![]() |
![]() |
![]() |
#4 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Try height="100%" instead of style=...
Eventually add img{max-width:100%;} in the css |
![]() |
![]() |
![]() |
#5 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,185
Karma: 60406678
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
|
![]() |
![]() |
![]() |
#6 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
|
![]() |
![]() |
![]() |
#7 |
Well trained by Cats
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 31,185
Karma: 60406678
Join Date: Aug 2009
Location: The Central Coast of California
Device: Kobo Libra2,Kobo Aura2v1, K4NT(Fixed: New Bat.), Galaxy Tab A
|
In makes no Logical sense, therefor confuses users even if it did not crash the render engine
Max and Min are Limits and should be used that way. (I would assume ![]() |
![]() |
![]() |
![]() |
#8 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Quote:
![]() You can consider to insert the picture in a div with the height/width you want: this "trick" seems to work with book-edit. Code:
<div style="height:100%"><img height="100%" src="../Images/cover.jpg"/></div> |
|
![]() |
![]() |
![]() |
#9 |
Member
![]() Posts: 21
Karma: 84
Join Date: Feb 2015
Device: Kindle Voyage, Kobo Glo
|
Thank you for your "trick". This workaround forces the preview panel to show the picture in the correct way.
(But finally it is what it is: a workaround.) |
![]() |
![]() |
![]() |
#10 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
|
Yes, it's a workaround, but it works also on older versions of iBooks (with their well-known bug in pictures width).
|
![]() |
![]() |
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Images not shown | sdfg | Calibre | 11 | 03-04-2015 10:42 PM |
Glo hide the footnote / endnote text shown in note preview | fxp33 | Kobo Reader | 3 | 05-04-2013 08:11 PM |
preview vs print preview | isalherbo | Sigil | 7 | 04-23-2013 03:52 PM |
Can you idetify the model shown here | jbcohen | Sony Reader | 13 | 05-25-2012 07:54 AM |
DR800 Anyway to get a clock shown at the bottom? | antistar | iRex | 1 | 04-19-2010 03:13 AM |