View Single Post
Old 07-21-2026, 02:18 AM   #1
mirai
Junior Member
mirai began at the beginning.
 
Posts: 2
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:	9
Size:	59.4 KB
ID:	224559  
Attached Files
File Type: epub viewer_rendering_bug_test.epub (2.98 MB, 7 views)
mirai is offline   Reply With Quote