gotosocial/internal/api/client/media
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
..
media.go [feature] Hashtag federation (in/out), hashtag client API endpoints (#2032) 2023-07-31 15:47:35 +02:00
mediacreate.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
mediacreate_test.go [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
mediaget.go [performance] http response encoding / writing improvements (#2374) 2023-11-27 14:00:57 +00:00
mediaupdate.go [feature] Process outgoing Move from clientAPI (#2750) 2024-03-13 13:53:29 +01:00
mediaupdate_test.go [feature] Allow import of following and blocks via CSV (#3150) 2024-08-02 12:41:46 +01:00