diff options
| author | 2024-08-08 17:12:13 +0000 | |
|---|---|---|
| committer | 2024-08-08 17:12:13 +0000 | |
| commit | f77005128a391025c16fb65c47a4272ac003cbf1 (patch) | |
| tree | ba73e2b475e3c567d47abee1bccca5a99184c02d /testrig/media | |
| parent | [feature] Add `db-postgres-connection-string` option (#3178) (diff) | |
| download | gotosocial-f77005128a391025c16fb65c47a4272ac003cbf1.tar.xz | |
[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
Diffstat (limited to 'testrig/media')
| -rw-r--r-- | testrig/media/cowlick-small.webp | bin | 5446 -> 11570 bytes |
| -rw-r--r-- | testrig/media/ghosts-small.webp | bin | 4652 -> 11624 bytes |
| -rw-r--r-- | testrig/media/ohyou-small.jpeg | bin | 0 -> 14665 bytes |
| -rw-r--r-- | testrig/media/ohyou-small.webp | bin | 4930 -> 0 bytes |
| -rw-r--r-- | testrig/media/sloth-small.jpeg | bin | 0 -> 55966 bytes |
| -rw-r--r-- | testrig/media/sloth-small.webp | bin | 42208 -> 0 bytes |
| -rw-r--r-- | testrig/media/team-fortress-small.jpeg | bin | 0 -> 26794 bytes |
| -rw-r--r-- | testrig/media/team-fortress-small.webp | bin | 10200 -> 0 bytes |
| -rw-r--r-- | testrig/media/thoughtsofdog-small.jpeg | bin | 0 -> 20394 bytes |
| -rw-r--r-- | testrig/media/thoughtsofdog-small.webp | bin | 9128 -> 0 bytes |
| -rw-r--r-- | testrig/media/trent-small.jpeg | bin | 0 -> 10270 bytes |
| -rw-r--r-- | testrig/media/trent-small.webp | bin | 6336 -> 0 bytes |
| -rw-r--r-- | testrig/media/welcome-small.jpeg | bin | 0 -> 17605 bytes |
| -rw-r--r-- | testrig/media/welcome-small.webp | bin | 5376 -> 0 bytes |
| -rw-r--r-- | testrig/media/zork-small.jpeg | bin | 0 -> 50381 bytes |
| -rw-r--r-- | testrig/media/zork-small.webp | bin | 36188 -> 0 bytes |
16 files changed, 0 insertions, 0 deletions
diff --git a/testrig/media/cowlick-small.webp b/testrig/media/cowlick-small.webp Binary files differindex 726492371..e1fa06f53 100644 --- a/testrig/media/cowlick-small.webp +++ b/testrig/media/cowlick-small.webp diff --git a/testrig/media/ghosts-small.webp b/testrig/media/ghosts-small.webp Binary files differindex 791e9dd6d..075a6a809 100644 --- a/testrig/media/ghosts-small.webp +++ b/testrig/media/ghosts-small.webp diff --git a/testrig/media/ohyou-small.jpeg b/testrig/media/ohyou-small.jpeg Binary files differnew file mode 100644 index 000000000..c1b9fc3ab --- /dev/null +++ b/testrig/media/ohyou-small.jpeg diff --git a/testrig/media/ohyou-small.webp b/testrig/media/ohyou-small.webp Binary files differdeleted file mode 100644 index b77955862..000000000 --- a/testrig/media/ohyou-small.webp +++ /dev/null diff --git a/testrig/media/sloth-small.jpeg b/testrig/media/sloth-small.jpeg Binary files differnew file mode 100644 index 000000000..cc686f47c --- /dev/null +++ b/testrig/media/sloth-small.jpeg diff --git a/testrig/media/sloth-small.webp b/testrig/media/sloth-small.webp Binary files differdeleted file mode 100644 index 31e908b97..000000000 --- a/testrig/media/sloth-small.webp +++ /dev/null diff --git a/testrig/media/team-fortress-small.jpeg b/testrig/media/team-fortress-small.jpeg Binary files differnew file mode 100644 index 000000000..5b9b91e41 --- /dev/null +++ b/testrig/media/team-fortress-small.jpeg diff --git a/testrig/media/team-fortress-small.webp b/testrig/media/team-fortress-small.webp Binary files differdeleted file mode 100644 index 75446a4b1..000000000 --- a/testrig/media/team-fortress-small.webp +++ /dev/null diff --git a/testrig/media/thoughtsofdog-small.jpeg b/testrig/media/thoughtsofdog-small.jpeg Binary files differnew file mode 100644 index 000000000..911565a71 --- /dev/null +++ b/testrig/media/thoughtsofdog-small.jpeg diff --git a/testrig/media/thoughtsofdog-small.webp b/testrig/media/thoughtsofdog-small.webp Binary files differdeleted file mode 100644 index e5fe1358e..000000000 --- a/testrig/media/thoughtsofdog-small.webp +++ /dev/null diff --git a/testrig/media/trent-small.jpeg b/testrig/media/trent-small.jpeg Binary files differnew file mode 100644 index 000000000..573dfc794 --- /dev/null +++ b/testrig/media/trent-small.jpeg diff --git a/testrig/media/trent-small.webp b/testrig/media/trent-small.webp Binary files differdeleted file mode 100644 index abdbecce0..000000000 --- a/testrig/media/trent-small.webp +++ /dev/null diff --git a/testrig/media/welcome-small.jpeg b/testrig/media/welcome-small.jpeg Binary files differnew file mode 100644 index 000000000..430fdf75f --- /dev/null +++ b/testrig/media/welcome-small.jpeg diff --git a/testrig/media/welcome-small.webp b/testrig/media/welcome-small.webp Binary files differdeleted file mode 100644 index 09e5bfe34..000000000 --- a/testrig/media/welcome-small.webp +++ /dev/null diff --git a/testrig/media/zork-small.jpeg b/testrig/media/zork-small.jpeg Binary files differnew file mode 100644 index 000000000..fcf416f02 --- /dev/null +++ b/testrig/media/zork-small.jpeg diff --git a/testrig/media/zork-small.webp b/testrig/media/zork-small.webp Binary files differdeleted file mode 100644 index 8539b2418..000000000 --- a/testrig/media/zork-small.webp +++ /dev/null |
