[feature] use webp for thumbnails (#3116)
* update to use webp for thumbnails * bump webp quality up to 40% from 12% (it's a bit different to jpeg quality setting) * update to use yuva colorspace, and use thumbnail=n=10 to select frame * fix missing comma in ffmpeg args * add links to appropriate ffmpeg docs * update tests * add file size tests for thumbnails --------- Co-authored-by: tobi <tobi.smethurst@protonmail.com>
|
Before Width: | Height: | Size: 9.9 KiB |
BIN
internal/media/test/birdnest-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 3.7 KiB |
BIN
internal/media/test/longer-mp4-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 2.1 KiB |
BIN
internal/media/test/not-an-processed.mp4
Normal file
BIN
internal/media/test/not-an-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
BIN
internal/media/test/test-jpeg-1x1px-white-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 44 B |
|
Before Width: | Height: | Size: 11 KiB |
BIN
internal/media/test/test-jpeg-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 8.3 KiB |
|
Before Width: | Height: | Size: 4.4 KiB |
BIN
internal/media/test/test-mp4-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 3.7 KiB |
|
Before Width: | Height: | Size: 7.8 KiB |
BIN
internal/media/test/test-png-alphachannel-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |
|
Before Width: | Height: | Size: 7.9 KiB |
BIN
internal/media/test/test-png-noalphachannel-thumbnail.webp
Normal file
|
After Width: | Height: | Size: 2.6 KiB |