webfs/README.md

32 lines
967 B
Markdown
Raw Permalink Normal View History

2023-04-02 21:12:58 -06:00
# Notice: Something Better Exists
After working on this for a few weeks,
I found [dufs](https://github.com/sigoden/dufs),
which I am now using instead of this.
2023-03-04 11:49:39 -07:00
# webfs
2023-04-02 13:36:50 -06:00
It's a WebDAV server that generates and caches media thumbnails.
2023-03-04 11:49:39 -07:00
I front-end it with Caddy,
which handles authentication and access controls.
2023-04-02 13:36:50 -06:00
Because the thumbnails live at the same path as the original media,
so I don't need any special gubbins to protect thumbnails the same way.
## Thumbnails
If you put `?thumbnail` at the end of the URL,
it will use `ffmpeg` to generate a WebP thumbnail that fits in a 320x200 box.
I use WebP because it provides alpha channels, animations,
and good compression.
If your browser doesn't have WebP support,
that's a real pity,
and this isn't a good software solution for you.
Thumbnails are cached.
No attempt is made to verify whether thumbnails are up-to-date,
or to clean up the thumbnail directory.
Something else is going to have to manage that.