Repository navigation
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info
📝 Walkthrough
Merge Risk: ⚪ Minimal · up to
|
|
Quick Look images decoded at logical size looked soft on HiDPI displays. Quick Look images use the display scale when they are decoded (38dbb02a2c, v0.4.0). Thanks @gjouret! Release. |
Its change shipped reimplemented in 0.4.0 (38dbb02), credited by trailer. This merge records the contributor's own commits; the tree is unchanged.
Opening an image with Space looks soft on a scaled display because Quick Look requests a decode sized in logical pixels. On a 200% display, a 1,000-logical-pixel preview receives roughly 1,000 image pixels for 2,000 physical screen pixels. This was reported on a 5120 × 2160 monitor at scale 2 with Flea 0.3.12.
Multiply the fit decode dimensions by
Screen.devicePixelRatio, and apply the same scaling to SVG redraws while zoomed. The existing logical layout and full-resolution raster zoom path remain in use. At scale 2, the fit texture can use approximately four times the memory of the previous under-resolved texture, bounded by source dimensions for raster images.Update the existing Quick Look zoom checks to expect physical-pixel decode dimensions.
Validation:
FLEA_FIXTURE_ROOT=/tmp/flea-sandbox bash tests/quicklook-zoom.sh— passed at default scale.QT_SCALE_FACTOR=1.5andQT_SCALE_FACTOR=2, using separate fixture roots — both passed.PreviewImage.qmltemporarily and ran the updated suite at scale 2 — failed on fit resolution and both SVG zoom resolution checks; restored the patch afterward.qmlformat,git diff --check, andtools/flea-file-budget— passed (existing budget warnings remain).The patch was also installed locally; visual confirmation of the resulting sharpness is still pending.
Summary by CodeRabbit