08-15-2010, 03:31 PM | #1 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
Image AR in Calibre EPUB Viewer
I've got an image in an img tag that has class = "calibre2"
The .css file has this: Code:
.calibre2 { height:auto; max-width:100%; min-width:100%; width:auto; } The bottom part of the image can be viewed by scrolling down in the window. This is useful for comics, where taller comics have multiple panels above and below. Stretching the window allows one to zoom in to read the comic strip. The same thing happens when that file is viewed as an EPUB (same CSS file) in EPUBReader within FireFox. Both operate the way I want them to operate. However, when that EPUB is viewed in the Calibre reader, it behaves differently. As the window is stretched, the image increases in size, with constant AR, only up to a limit. After that limit is reached, the height no longer increases, while the width does. The AR begins to change and the image distorts. I believe the height stops increasing when it is 100% of the actual image height. I'd like to get the Calibre EPUB viewer to operate the same way as EPUBReader and FF/html. I'm not sure, however, whether the Calibre EPUB viewer is doing it wrong, or if this is undefined. Is this something that should be considered a bug in the Calibre EPUB viewer, or can I adjust the CSS in some way to achieve the same behavior as in FF and EPUBReader? Comments are welcome. |
08-15-2010, 03:52 PM | #2 |
creator of calibre
Posts: 43,960
Karma: 22669822
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
|
the calibre epub viewer tries to always keep images to fit in the visible window. There's a preference in the viewer preferences to control this behavior.
|
Advert | |
|
08-15-2010, 05:58 PM | #3 |
Wizard
Posts: 4,004
Karma: 177841
Join Date: Dec 2009
Device: WinMo: IPAQ; Android: HTC HD2, Archos 7o; Java:Gravity T
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
[old-topic]ebook-viewer: Open source, crossplatform viewer for EPUB, LIT, MOBI, etc | kovidgoyal | Calibre | 68 | 05-30-2011 08:46 PM |
Weird formatting issues - Sigil .epub in Calibre viewer | december | Sigil | 9 | 06-18-2010 04:04 PM |
another image, cbr and cbz viewer | Max | iRex | 62 | 06-10-2010 01:57 PM |
Calibre News Epub Image Scaling | grib | Calibre | 3 | 01-07-2010 06:45 AM |
How to reproduce the image viewer bug | sirbruce | Amazon Kindle | 9 | 06-11-2009 08:44 PM |