tileview pictures preview #484
Labels
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference: Cordy/Cairn#484
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
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?
If file is a JPG, and user in tiles view, have a preview of the picture in the tile. attached is a screenshot of OpenClouds example.
Shipped in v0.6.173 (PR #511), live on both dogfoods (currently at v0.6.174).
Tiles now show the picture, like the reference — but rendered server-side rather than shipping the original: a new
GET /api/v1/thumbendpoint produces a downscaled JPEG (480px longest edge, JPG/PNG/GIF/WebP/BMP) with a per-file-version disk cache next to the preview cache (100 MB, oldest evicted) and browser caching via ETag/304. Phone photos come out the right way up — EXIF orientation is parsed and applied. Decompression bombs are refused from the header before any decode, sources over 32 MB fall back to the type icon, and only one decode runs at a time so small pods stay inside their memory limits. Tiles lazy-load, so a big folder only fetches what scrolls into view.Per the approved mockup, tiles also gained the permanently visible checkbox (white halo on photos) and the star + kebab in the name row.