Files
lightcraft/crates
tecari0andClaude Sonnet 5.5 ba98dc66c9 Detail: snap the 100% view to whole screen pixels (#1683)
At 100% the photo's corner could sit half a physical pixel off, for
example in a 1279.5 pt canvas on a 2x display. The GPU then resampled
the photo with its bilinear filter and blurred it. On a 5152x7728 JPEG
the 100% view kept 68% of the fine detail.

fit_rect now rounds the corner to a whole physical pixel when the photo
is 1:1 with the screen. Other zooms resample anyway, and a pinch must
not jump, so they stay as they were. With the fix the same view matches
the original (71.4 dB PSNR, 100% of the detail).

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
2026-10-14 17:06:07 -07:00
..
2026-10-13 11:05:54 +07:00
2026-10-13 11:02:38 +07:00
2026-10-14 01:39:50 -04:00
2026-10-14 01:54:50 -04:00