function61 / varasto

All your files in one simple, replicated, encrypted place - with built-in backups and configurable ransomware protection.
https://function61.com/varasto
Apache License 2.0
56 stars 5 forks source link

Thumbnails via FUSE according to XDG specs #204

Open joonas-fi opened 2 years ago

joonas-fi commented 2 years ago

XDG specs dictate a place where thumbnails should be stored so they can be automatically accessed by other programs: https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html

The benefit of this is that directories with large amounts of images can be loaded fast.

They dictate the format as PNG and metadata (file path + modification time) that must go in the file.

Example in Rust: https://github.com/filcuc/thumbnailer

One possible implementation in Linux is to mount the thumb dir with overlayFS and have the top layer come from our FUSE projector. It would however have to mean that we'd have to have all possible thumbnail image filenames loaded beforehand (to know their thumbnail path hashes)

Question:

joonas-fi commented 2 years ago

https://unix.stackexchange.com/a/679079/184885

joonas-fi commented 1 year ago

I heard nobody implements the spec? Investigate the reason for it.