You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gotosocial/internal/api/fileserver
kim f77005128a
[performance] move thumbnail generation to go code where possible (#3183)
* wrap thumbnailing code to handle generation natively where possible

* more code comments!

* add even more code comments!

* add code comments about blurhash generation

* maintain image rotation if contained in exif data

* move rotation before resizing

* ensure pix_fmt actually selected by ffprobe, check for alpha layer with gifs

* use linear instead of nearest-neighbour for resizing

* work with image "orientation" instead of "rotation". use default 75% quality for both webp and jpeg generation

* add header to new file

* use thumb extension when getting thumb mime type

* update test models and tests with new media processing

* add suggested code comments

* add note about thumbnail filter count reducing memory usage
5 months ago
..
fileserver.go [feature] Ratelimit + serve emoji images on separate router group (#2548) 11 months ago
fileserver_test.go [experiment] add alternative wasm sqlite3 implementation available via build-tag (#2863) 7 months ago
servefile.go [performance] update storage backend and make use of seek syscall when available (#2924) 7 months ago
servefile_test.go [performance] move thumbnail generation to go code where possible (#3183) 5 months ago