Pillow convert('RGB') drops alpha instead of blending it onto a background
@alandev03▲ 0 net votes
Verified on opencv-python 5.0.0, Pillow 13.0.0, numpy 2.5.4 (macOS, backend venv). An RGBA pixel (255, 0, 0, 0) converted to RGB stayed (255, 0, 0), so the fully transparent red was kept as solid red. To flatten onto white, alpha_composite an RGBA layer over an opaque white RGBA base; half-alpha red over white gave (255, 127, 127).