Register Guidelines E-Books Today's Posts Search

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

Notices

Reply
 
Thread Tools Search this Thread
Old Today, 02:18 AM   #1
mirai
Junior Member
mirai began at the beginning.
 
Posts: 1
Karma: 10
Join Date: Jul 2026
Device: none
Calibre 9.11 Viewer rendering issue after maximizing window (images become tiny or le

Hello,

I would like to report what appears to be a rendering issue in the Calibre Viewer.

I spent quite a long time trying to isolate the problem and created a small reproducible test EPUB. The behavior seems reproducible under specific conditions.

## Environment

- Windows 11
- Calibre 9.11
- EPUB3
- Default Viewer settings

## Attached files

- viewer_rendering_bug_test.epub
- viewer_incorrect_rendering.png

## Steps to reproduce

1. Open the attached EPUB in the Calibre Viewer.
2. The Viewer first opens in a normal (non-maximized) window.
3. Maximize the Viewer window.

## Expected result

The image should scale normally to fit the available window while preserving its aspect ratio.

## Actual result

The rendering becomes incorrect.

Two different behaviors occur depending on the page.

### Cover page

Before maximizing:
- The image almost fills the initial Viewer window.

After maximizing:
- The image becomes smaller.
- The image is aligned toward the left side of the page.

### Normal image pages (001–003)

Before maximizing:
- The image is displayed normally.

After maximizing:
- The image becomes extremely small (thumbnail-sized).
- The image remains centered.

A screenshot of this behavior is attached.

## Additional observations

The cover page and the normal image pages behave differently even though they contain exactly the same test image.

This may suggest that the Viewer uses different rendering behavior for cover pages and normal XHTML pages, although I cannot be certain.

I also observed that manual zoom operations affect the behavior.

If I use Ctrl + Mouse Wheel to zoom the image to a reasonable size, close the Viewer, and reopen the EPUB, the rendering sometimes becomes normal.

If I zoom out again until the image becomes tiny, the incorrect rendering returns.

This may suggest that an internal zoom state or rendering state is preserved and reused after maximizing the Viewer window.

## Additional investigation

I also tested:

- a minimal EPUB containing a single image,
- different image aspect ratios,
- replacing all images with identical test images,
- recreating the EPUB from scratch.

The behavior persisted in various forms.

The attached EPUB is the smallest test case I could produce while still reproducing the issue.

I should also mention that I am completely new to EPUB, Sigil, and Calibre. I am not a developer or an expert. Most of this investigation was carried out step by step with the help of ChatGPT while trying to create my own EPUB photo book. If further information is needed, I will do my best to provide it within my abilities.

Thank you very much for your work on Calibre.
Attached Thumbnails
Click image for larger version

Name:	viewer_incorrect_rendering.png
Views:	7
Size:	59.4 KB
ID:	224559  
Attached Files
File Type: epub viewer_rendering_bug_test.epub (2.98 MB, 5 views)
mirai is offline   Reply With Quote
Old Today, 05:50 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: 46,378
Karma: 29630884
Join Date: Oct 2006
Location: Mumbai, India
Device: Various
Look at https://manual.calibre-ebook.com/con...ormatting-demo it tells you how to code full page images (among other things) in a way that will work with most epub readers.
kovidgoyal is offline   Reply With Quote
Advert
Old Today, 08:00 AM   #3
JSWolf
Resident Curmudgeon
JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.JSWolf ought to be getting tired of karma fortunes by now.
 
JSWolf's Avatar
 
Posts: 84,237
Karma: 153715495
Join Date: Nov 2006
Location: Roslindale, Massachusetts
Device: Kobo Libra 2, Kobo Aura H2O, PRS-650, PRS-T1, nook STR, PW3
It's not a bug and it's not poor code. It's a settings issue in the viewer. By default, when you go full screen, you get automatic columns. So your image is in the first column.

Kovid, could you have settings for columns, for when the viewer more then 1/2 the screen width and form when the view is less then 1/2 the screen width? If I want to have just 2 columns in full screen, I have to change it and when I do and I go back my windowed view, I still have the 2 columns. It would be best if full screen I had two columns but in my windowed view I had just one column. This way, I would not have to keep changing settings. Oh ans one other set of settings. An option for the space between columns. As it is, I'd have to set the margins every time I go from columns to no columns and back.. Thanks.

Last edited by JSWolf; Today at 08:03 AM.
JSWolf is online now   Reply With Quote
Old Today, 01:32 PM   #4
DNSB
Bibliophagist
DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.DNSB ought to be getting tired of karma fortunes by now.
 
DNSB's Avatar
 
Posts: 53,222
Karma: 181177243
Join Date: Jul 2010
Location: Vancouver
Device: Kobo Sage, Libra Colour, Lenovo M8 FHD, Paperwhite 4, Tolino epos
In my calibre setup, for the viewer customization, I have the # of columns set to 1 and did not see the issues you saw.

Otherwise, epubcheck was not happy with your test ePub. I changed the naked img tags to using an SVG wrapper (my preference for cover and other full page images) and a bit of other cleanup. The revised ePub is attached to this message.

I've attached the modified ePub and some images from calibre's ebook-viewer.
Attached Thumbnails
Click image for larger version

Name:	Screenshot 2026-07-21 103012.png
Views:	2
Size:	180.2 KB
ID:	224571   Click image for larger version

Name:	Screenshot 2026-07-21 102636.png
Views:	2
Size:	369.8 KB
ID:	224572   Click image for larger version

Name:	Screenshot 2026-07-21 102658.png
Views:	2
Size:	874.2 KB
ID:	224573   Click image for larger version

Name:	Screenshot 2026-07-21 102717.png
Views:	2
Size:	1,023.7 KB
ID:	224574   Click image for larger version

Name:	Screenshot 2026-07-21 102740.png
Views:	2
Size:	951.6 KB
ID:	224575   Click image for larger version

Name:	Screenshot 2026-07-21 102812.jpg
Views:	2
Size:	236.6 KB
ID:	224576  
Attached Files
File Type: epub viewer_rendering_bug_test - Unknown.epub (2.98 MB, 0 views)
DNSB is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Issue with displaying images in an ebook in Calibre Viewer MIRS90 Viewer 4 11-11-2022 06:36 PM
Font size rendering in Calibre Viewer vs. Editor maraskan_user Viewer 2 12-23-2020 03:02 PM
Rendering issue with Calibre - all fonts italicized thiago.eec Calibre 16 12-07-2020 12:25 PM
Calibre 2.42 - Bad rendering of images in the editor Sam Sahara Editor 2 11-02-2015 08:22 PM
Calibre Viewer TOC Window speakingtohe Calibre 4 03-12-2012 11:51 AM


All times are GMT -4. The time now is 04:29 PM.


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