We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent f2b1284 commit 4a06123Copy full SHA for 4a06123
pytest_image_diff/image_diff.py
@@ -59,7 +59,8 @@ def convert_color_mode(
59
im = im.convert("RGBA")
60
background = Image.new("RGBA", im.size, alpha_color or ALPHA_COLOR)
61
62
- alpha_image = Image.alpha_composite(im, background).convert(color_mode)
+ alpha_image = Image.alpha_composite(background, im)
63
+ alpha_image = alpha_image.convert(color_mode)
64
65
return alpha_image
66
0 commit comments