diff options
author | DLFW <daniel@llin.info> | 2024-05-20 04:22:30 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-05-19 22:22:30 -0400 |
commit | e458ac3fbf4bcd2dfa775d990c2931916e09cddc (patch) | |
tree | 8c38aef92c013d858d1f90fde673970690859e8f /lib/git@git.beyermatthi.as:joshuto | |
parent | 1245124fcd264e25becfd75258840708d7b8b4bb (diff) |
This implements a cache for thumbnails and image previews for non-image
file formats, like videos and PDFs.
This patch extends the inbuilt image preview feature (285df85) by
integrating the `allmytoes` crate and using its thumbnails instead of
the actual file being previewed.
The image-preview feature uses the XDG-(freedesktop.org-) specified
thumbnail-cache to re-use existing thumbs and to store newly created
thumbs.
(https://specifications.freedesktop.org/thumbnail-spec/thumbnail-spec-latest.html)
This increases performance for the image-preview because the preview
does not need to load the full-sized version of the image and does not
need to scale it down every time, once the thumbnail has been created.
Also, thumbnails are now shared with other programs that use the
XDG-thumb cache.
Furthermore, the new way to obtain thumbs allows to show image-previews
for file types other than images. Existing thumbnails are shown for any
file type. New thumbnails can be created for many video formats, PDF
files, Postscript files, and SVGs. Users can also add “providers” for
other file-types by configuring `allmytoes`.
The XDG-thumb feature can be disabled, and the thumbnail-size can be
changed, both in `joshuto.toml`. The documentation has been extended,
the whole image-preview page has been enhanced a little.
Diffstat (limited to 'lib/git@git.beyermatthi.as:joshuto')
0 files changed, 0 insertions, 0 deletions