varasto icon indicating copy to clipboard operation
varasto copied to clipboard

Thumbnails via FUSE according to XDG specs

Open joonas-fi opened this issue 3 years ago • 2 comments

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:

  • Do we need to add any support, or should we just leave it to end application to create new thumbnails, even when Varasto already has builtin thumbnails?

joonas-fi avatar Mar 20 '22 12:03 joonas-fi

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

joonas-fi avatar Oct 31 '22 14:10 joonas-fi

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

joonas-fi avatar Mar 31 '23 19:03 joonas-fi