ploiu / file_server

a self-hostable file backup server, written in rust because crabs are funny
Apache License 2.0
0 stars 0 forks source link

file previews #54

Closed ploiu closed 5 months ago

ploiu commented 10 months ago

File Previews

Goals

Generating Previews

Generating image previews will require an image manipulation library. Imageproc (made by the same group who developed the image manip library above) can write text to images. Check to see if I can use just one library instead of both image and imageproc.

Since manipulating preview images can take time we don't want the user to experience, it might be best to use rabbitmq to queue using lapin when uploads aren't happening. The queue won't have to take up space, because it can just reference the already-uploaded files. Running rabbit can take up extra memory though, so it should probably be under a feature flag, and possibly running on a different piece of hardware (use config file).

The previews will be stored as a BLOB in a new database table, with a reference to the original file's id for easy access via a rest handler


Checklist

ploiu commented 9 months ago

For now we will only worry about images. office documents and pdfs aren't super useful for my use case right now and it's a pita to get it working cleanly.