I have some code like such:
background = Image.open("background.png").convert("RGBA")
foreground = Image.open("foreground.png").convert("RGBA")
background.paste(foreground, (0, 0), foreground)
For whatever reason, this adds some artifacting that I do not see in Photoshop when stacking the layers:
See the equivalent region/layer stacked in Photoshop here for comparison:
Any idea why this is? Should I be loading my png file differently, or saving it with max quality somehow?