Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Software > Calibre > Editor

Notices

Reply
 
Thread Tools Search this Thread
Old 10-16-2015, 02:30 AM   #1
ratanplan
Member
ratanplan has learned how to buy an e-book online
 
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
Attached Thumbnails
Click image for larger version

Name:	bild.jpg
Views:	216
Size:	719.7 KB
ID:	142882  
ratanplan is offline   Reply With Quote
Old 10-16-2015, 02:40 AM   #2
kovidgoyal
creator of calibre
kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.kovidgoyal ought to be getting tired of karma fortunes by now.
 
kovidgoyal's Avatar
 
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.
kovidgoyal is offline   Reply With Quote
Old 10-16-2015, 02:45 AM   #3
ratanplan
Member
ratanplan has learned how to buy an e-book online
 
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.
ratanplan is offline   Reply With Quote
Old 10-16-2015, 01:04 PM   #4
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
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
senhal is offline   Reply With Quote
Old 10-16-2015, 01:09 PM   #5
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by senhal View Post
Try height="100%" instead of style=...
Eventually add img{max-width:100%;} in the css
IMHO max-whatever: 100% ;is Nonsense
Max-whatever: is a constraint. Don't make it bigger than X if you set the (normal)whatever to a percentage
theducks is offline   Reply With Quote
Old 10-16-2015, 02:13 PM   #6
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
Quote:
Originally Posted by theducks View Post
IMHO max-whatever: 100% ;is Nonsense
Max-whatever: is a constraint. Don't make it bigger than X if you set the (normal)whatever to a percentage
Maybe I'm missing something... Which are the cons?
senhal is offline   Reply With Quote
Old 10-16-2015, 02:33 PM   #7
theducks
Well trained by Cats
theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.theducks ought to be getting tired of karma fortunes by now.
 
theducks's Avatar
 
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
Quote:
Originally Posted by senhal View Post
Maybe I'm missing something... Which are the cons?
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 that 100% of the whatever would be implied if it was missing )
theducks is offline   Reply With Quote
Old 11-01-2015, 04:16 AM   #8
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
Quote:
Originally Posted by ratanplan View Post
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.
Please forgive my previous reply: I was missing the "2.41" in the title and I was still using 2.40. Now I get it
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>
senhal is offline   Reply With Quote
Old 11-01-2015, 03:08 PM   #9
ratanplan
Member
ratanplan has learned how to buy an e-book online
 
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.)
ratanplan is offline   Reply With Quote
Old 11-02-2015, 08:47 AM   #10
senhal
Connoisseur
senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.senhal knows what's going on.
 
senhal's Avatar
 
Posts: 82
Karma: 25684
Join Date: Sep 2014
Device: Kindle NT
Quote:
Originally Posted by ratanplan View Post
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.)
Yes, it's a workaround, but it works also on older versions of iBooks (with their well-known bug in pictures width).
senhal is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 11:16 PM.


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