Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fixed Lint

Flippchen6862af72d824
diff --git a/rembg/bg.py b/rembg/bg.py
index a30bc67..fc99793 100644
--- a/rembg/bg.py
+++ b/rembg/bg.py
@@ -107,7 +107,7 @@ def post_process(mask: np.ndarray) -> np.ndarray:
def apply_background_color(img: PILImage, color: List[int]) -> PILImage:
r, g, b = color
- colored_image = Image.new('RGBA', img.size, (r, g, b, 255))
+ colored_image = Image.new("RGBA", img.size, (r, g, b, 255))
colored_image.paste(img, mask=img)
return colored_image