#440 Desktop: thumbnails for moments made from photos and videos
–
- github
- github/openchronology/timeline-app
- github/openchronology/timeline-app#440
- issue
- state:closed
A follow-up to #433 (the file populator, #439), so a timeline made from photos reads like an album: each moment shows a small picture of its photo or video. To work this out: - **Making thumbnails:** in the desktop app, from the file's embedded EXIF thumbnail where there is one, or else by scaling the image down. Videos need a frame, and decoding one without bundling ffmpeg is the open question. - **Where they're kept:** a cache in the app's data directory, keyed by the file's path and its modified time, so a changed file gets a new thumbnail. - **Showing them:** the desktop's CSP allows only `'self' data: https:` for images. Either serve the cache through Tauri's asset protocol, scoped to the cache directory alone, or have a command return each thumbnail as a `data:` URL. - **Never sent to a server:** like the file links themselves, thumbnails mustn't reach one. A desktop `.och` saved to a server goes without them. - **Plugins:** the moment-icon or marker plugins would need to show a local thumbnail for a moment whose source is a file. https://github.com/openchronology/timeline-app/issues/440
Related
- #433 Desktop integration - image file metadata for when the photo was created
- #439 The desktop makes timelines from files, each opening in its own app (#433)
- #441 In the desktop app, a photo's moment shows its thumbnail (#440)
- #442 Desktop: thumbnails for videos, and for HEIC and AVIF photos without a preview
- In the desktop app, a photo's moment shows its thumbnail (#440)
- Merge pull request #441 from openchronology/feature/440-file-thumbnails
Open #440 Desktop: thumbnails for moments made from photos and videos in the timeline