Quote:
Originally Posted by RbnJrg
One moment! When you say Calibre, what do you mean? Calibre Viewer or Calibre eBook Editor? You can't compare Sigil/PageEdit with Calibre Viewer; you need to compare Sigil with Calibre eBook Editor. And both of them, display the same image when you resize the Preview Pane. Regarding Calibre Viewer, it doesn't honor the code inside the epub. Open my Temporal4.epub with the Sigil's plugin Readium and you'll see that the image has the same behaviour as in Sigil/Calibre eBook Editor.
As I said, Calibre Viewer is not honoring the epub code (the image doesn't take the 100% of the viewport when you narrow the window). Sigil, OTOH, displays properly the image with a height of 100% and a width to maintain the proportion ("width: auto" means a width to maintain the proportion of the image; meanwhile "width: 100%" means a width of 100% of the viewport width). As the window is narrow than the image, and you are using "width: auto", then you can't see it fully.
|
It appears we're getting to the crux of the issue; I was/am referring to Calibre Viewer. But I'm a little confused as to why I need to compare Sigil only with Calibre Editor? I mean, most people don't read in Calibre editor, no? Aren't Sigil Preview/PageEdit designed to show what the reading experience would look like? Does this mean that Calibre's Viewer is bugged? And if so, are there other ebookreaders that share this bug?
Quote:
It's all ok. Your image is already squished (is a narrow image), Calibre just maintains the proportion; with "width: auto" it won't stretch the image. My image resizes "perfectly" as you say because the width of my image is bigger than yours.
|
It's true that the image is narrow, but it
also gets squished on top of that, whereas yours does not. I've attached three images: 1) Your file/image (set to auto width) with a narrow window (scaling correctly), 2) My file/image with narrow window (getting squished), and 3) My file image with normal window (correct aspect ratio).