stash-box icon indicating copy to clipboard operation
stash-box copied to clipboard

Refactor image resizing

Open InfiniteStash opened this issue 2 years ago • 0 comments

Removes previous image resizing infrastructure in favor of JIT resizing via libvips. The upside is we can use thumbs of different sizes rather using 720p/1080p images for everything.

This requires CGO for linux, which breaks static linking on linux. It's proven very difficult to sort out on Windows, so the windows build will continue using the rather slow go resizing. As long as production builds use docker, it shouldn't cause any issues.

Overall it's pretty speedy, although for production I recommend using varnish or similar to cache.

InfiniteStash avatar Jul 06 '23 12:07 InfiniteStash