mirror of
1
Fork 0
gotosocial/internal/processing/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
..
create.go [feature] support processing of (many) more media types (#3090) 2024-07-12 09:39:47 +00:00
delete.go [performance] update storage backend and make use of seek syscall when available (#2924) 2024-05-22 11:46:24 +02:00
getemoji.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
getemoji_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
getfile.go [bugfix] fix emoji recaching operations (#3167) 2024-08-03 19:05:38 +02:00
getfile_test.go [performance] move thumbnail generation to go code where possible (#3183) 2024-08-08 17:12:13 +00:00
getmedia.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
media.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
media_test.go [chore] media and emoji refactoring (#3000) 2024-06-26 16:01:16 +01:00
profile.go [feature] Implement profile API (#2926) 2024-05-29 12:57:44 +02:00
unattach.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
unattach_test.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00
update.go [chore] deinterface the typeutils.Converter and update to use state structure (#2217) 2023-09-23 18:44:11 +02:00
util.go [chore] Improve copyright header handling (#1608) 2023-03-12 16:00:57 +01:00