webfs/README.md

26 lines
805 B
Markdown
Raw Normal View History

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.