Viewer zoom and sharper tiles

Mouse wheel, trackpad and two-finger pinch zoom in the album viewer,
up to one image pixel per device pixel; drag pans while zoomed and
only the visible tiles of the needed level are loaded.

Default WebP quality raised to top 90, mid 88, low 88, with
smart_subsample for WebP tiles and the seed.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
This commit is contained in:
lucioandClaude Opus 5.5 committed 2026-11-04 20:56:12 -08:00
1 parent ae898a2787
commit aaf7cafdf9
9 files changed
+302 -18

No files matched your search

+2 -2
View File
@@ -54,7 +54,7 @@ uploads (rsync/SFTP) -> /srv/luphoto/albums -> watcher (debounce) -> processor (
1. Autorotate by EXIF orientation, convert to sRGB from the embedded profile.
2. Read camera, lens, focal length, aperture, shutter, ISO and date into the manifest. Drop everything else, including GPS. Tiles carry no metadata.
3. Pyramid: tiles 512 px, 1 px overlap; each level halves the previous one until the long edge is under 100 px. Level 0 is the smallest.
4. WebP by default (AVIF optional). Quality per level: `top` for the top two levels, `low` for levels whose long edge is at most 1100 px, `mid` otherwise.
4. WebP by default (AVIF optional); WebP tiles and the seed are saved with `smart_subsample` so chroma stays sharp. Quality per level: `top` for the top two levels, `low` for levels whose long edge is at most 1100 px, `mid` otherwise.
5. Seed: a 48 px (long edge) WebP, base64 inside the album manifest.
6. No resolution cap: the full-resolution level is stored; the loader never fetches beyond screen size × max_dpr.
7. Tile paths: `/t/<photo-hash>/<tile-id>.webp`. photo-hash = first 16 hex of SHA-256 over the original bytes + a processing-settings fingerprint. tile-id = first 16 hex of HMAC-SHA-256(site key, photo-hash|level|x|y). The site key is generated once and kept in the state folder. On disk and in developer tools the tiles are an unordered pile of patches; only the manifest maps them back.
@@ -106,7 +106,7 @@ cache = "/var/cache/luphoto"
tile_size = 512
overlap = 1
format = "webp"
quality = { top = 82, mid = 85, low = 88 }
quality = { top = 90, mid = 88, low = 88 }
min_levels = 6
seed_px = 48
tile_names = "hashed"