OutfitChanger / utils.py
altayavci's picture
Update utils.py
18bc874
raw
history blame
248 Bytes
from PIL import Image
def alpha_composite_manuel(img: Image):
background = Image.new("RGBA", img.size, (255, 255, 255))
result = Image.alpha_composite(background, img.convert("RGBA"))
result = result.convert("RGB")
return result