Fix T51678: 16bit greyscale PNG images thumbnailing fails
generate_local_thumbnails() now uses pathlib and f-string formatting too, making the code a lot simpler. Furthermore, I removed unused bits of resize_and_crop() and simplified the rest.
BIN
tests/test_api/images/300x512-8bit-rgb.jpg
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
tests/test_api/images/512x256-16bit-grey-alpha.png
Normal file
After Width: | Height: | Size: 243 KiB |
BIN
tests/test_api/images/512x256-16bit-grey.png
Normal file
After Width: | Height: | Size: 186 KiB |
BIN
tests/test_api/images/512x256-16bit-rgb.png
Normal file
After Width: | Height: | Size: 611 KiB |
BIN
tests/test_api/images/512x512-8bit-grey-alpha.png
Normal file
After Width: | Height: | Size: 175 KiB |
BIN
tests/test_api/images/512x512-8bit-rgb.jpg
Normal file
After Width: | Height: | Size: 184 KiB |
BIN
tests/test_api/images/512x512-8bit-rgba.png
Normal file
After Width: | Height: | Size: 434 KiB |
2
tests/test_api/images/README.txt
Normal file
@@ -0,0 +1,2 @@
|
||||
Images courtesy of Blender Cloud
|
||||
https://cloud.blender.org/
|