fix(viewer): load tall images past Qt's allocation limit; always display full resolution #134
No reviewers
Labels
No labels
Kind/Bug
Kind/Feature
Priority/High
Priority/Medium
Reviewed/Confirmed
Compat/Breaking
Kind/Bug
Kind/Documentation
Kind/Enhancement
Kind/Feature
Kind/Security
Kind/Testing
Priority
Critical
Priority
High
Priority
Low
Priority
Medium
Reviewed
Confirmed
Reviewed
Duplicate
Reviewed
Invalid
Reviewed
Won't Fix
Status
Abandoned
Status
Blocked
Status
Need More Info
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
ai-collab/bulk-image-organizer!134
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "0.2.1/issue-117-tall-image-not-rendering"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
QImage(path)uses Qt's default 256 MBQImageReaderallocation limit before any downscaling runs. The viewer fell back to showing the previously loaded image, and the Duplicates Multi view showed a blank canvas, with no error surfaced (isNull()returnsTruewithout raising). Now loads viaQImageReaderdirectly with the allocation limit raised to 1024 MB.ViewerImageLoader/enqueue_viewer_image_loadnow supportmax_edge=Noneto skip that downscale; the existing fit-to-window transform already handles shrinking the full-resolution image for the default view. All four viewer load sites (initial load, neighbor prefetch, post-rotation reload) now request full resolution. The duplicate-comparison multi-pane grid (dupe_multi_grid.py) keeps its prior capped default unchanged, since it's a separate, more memory-sensitive view.Test plan
tests/test_viewer_image_loader.pyreproduces the exact failing dimensions (1569x42895) and confirms it now loads and downscales correctlymax_edge=Nonereturns true full resolution instead of the capped sizepytest— 540 passed, 1 skippedruff check/ruff format --checkclean./scripts/smoke-ui-exit.sh(offscreen) — clean Qt teardown, no shutdown errors./scripts/check-version-bump.shpassesViewerImageLoader🤖 Generated with Claude Code