amahi / amahi-anywhere-fs

Amahi Anywhere file server
GNU General Public License v3.0
12 stars 10 forks source link

Thumbnail caching #20

Closed vishwasmittal closed 5 years ago

vishwasmittal commented 5 years ago

Fixes #19

vishwasmittal commented 5 years ago

Spawns a Goroutine checks walks down the file tree, starting from the shares, and create a .fscache/thumbnails directories in each directory and creates low-resolution thumbnails for each image.

TODOs:

vishwasmittal commented 5 years ago

@csoni111 @cpg the thumbnail feature is almost completed. Awaiting review. Please review it and suggest the changes.

csoni111 commented 5 years ago

Instead of running the createThumbnailCache() func periodically, you can do this: 1) Run the createThumbnailCache()func once on program start. 2) Add a fileWatcher using fsNotify library to keep track of changing files, and update/create new thumbnails for any change in image files. Ref: https://medium.com/@skdomino/watch-this-file-watching-in-go-5b5a247cf71f

vishwasmittal commented 5 years ago

@csoni111 I have made the necessary changes as you asked.

vishwasmittal commented 5 years ago

@csoni111 please review it.