gotosocial/internal/api/client/instance
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
2024-08-08 17:12:13 +00:00
..
instance.go [feature] Instance rules (#2125) 2023-08-19 14:33:15 +02:00
instance_test.go [feature] Add experimental instance-federation-spam-filter option (#2685) 2024-02-27 12:22:05 +00:00
instanceget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
instancepatch.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
instancepatch_test.go [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
instancepeersget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
instancepeersget_test.go [chore] Use generic pointer function (#2080) 2023-08-07 18:38:11 +01:00
instancerulesget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00