79777543

Date: 2025-09-28 19:15:10
Score: 1
Natty:
Report link

Since JPEG doesn't support transparency, pillow fills those transparent areas with white by default. I would suggest you to manually add a black background before saving to JPEG.

black_bg = Image.new("RGBA", img.size, "black")
final_img = Image.alpha_composite(black_bg, img)

Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Avalvir Kaur Sekhon