hsmusic / hsmusic-wiki

The Homestuck Music Wiki — static wiki software cataloguing collaborative creation
MIT License
2 stars 6 forks source link

Live thumbnail generation/watching #196

Open towerofnix opened 1 year ago

towerofnix commented 1 year ago

In order to make live data reloading more seamless, we'll need new images in the media folder to automatically be detected and have thumbnails generated, too!

This should be enabled by default when running --live-dev-server, but I'd like to enable running it as a separate process too, since there don't actually need to be any communications between data/code and thumbnail updates — along the lines of --live-thumb-server (same behavior as --live-dev-server --thumbs-only).

This should be tested with large source images also (25MB+). We need to ensure source files are fully "uploaded"/pasted into the media directory before processing.

towerofnix commented 7 months ago

This is obviously a blocker for live data reloading, but we've sped up checking for new/updated thumbnails enough that it doesn't take much wait to forego --skip-thumbs and get new thumbnails every time you restart HSMusic due to a data change. Still have to figure this out sometime!