Add files via upload

This commit is contained in:
AI Lab
2025-08-11 10:26:20 -07:00
committed by GitHub
parent 93b3f6296d
commit bb51e454ac
6 changed files with 409 additions and 6 deletions
-1
View File
@@ -213,7 +213,6 @@ class BodySegment:
raise ValueError("Invalid color format")
return (r, g, b, a)
rgba_image = RGB2RGBA(orig_image, mask_image)
background_color = params.get("background_color", "#222222")
rgba = hex_to_rgba(background_color)
bg_image = Image.new('RGBA', orig_image.size, rgba)
composite_image = Image.alpha_composite(bg_image, rgba_image)