Fix error with rotating vertical mode images. Add more tests for catching these.

This commit is contained in:
javl
2026-08-15 10:31:51 +02:00
parent eaaf1da3aa
commit cc1fc7ad43
13 changed files with 166 additions and 11 deletions
+14
View File
@@ -71,6 +71,20 @@ SCENARIOS = [
("rotate_90", {"rotation": 90}, None),
("rotate_180", {"rotation": 180}, None),
("rotate_270", {"rotation": 270}, None),
("rotate_90_vertical", {"drawMode": "vertical1bit", "rotation": 90}, None),
("rotate_270_vertical", {"drawMode": "vertical1bit", "rotation": 270}, None),
("rotate_180_vertical", {"drawMode": "vertical1bit", "rotation": 180}, None),
("rotate_90_horizontal565", {"drawMode": "horizontal565", "rotation": 90}, None),
("rotate_90_horizontal888", {"drawMode": "horizontal888", "rotation": 90}, None),
("rotate_90_horizontal_alpha", {"drawMode": "horizontalAlpha", "rotation": 90}, None),
(
"rotate_90_flip_both",
{"rotation": 90, "flipHorizontally": True, "flipVertically": True},
None,
),
("rotate_270_flip_horizontal", {"rotation": 270, "flipHorizontally": True}, None),
("rotate_90_resized", {"rotation": 90}, (48, 24)),
("bitswap_vertical", {"drawMode": "vertical1bit", "bitswap": True}, None),
("dithering_bayer", {"ditheringMode": 1}, None),
("dithering_floyd_steinberg", {"ditheringMode": 2}, None),
("dithering_atkinson", {"ditheringMode": 3}, None),