Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix linters

Daniel Gatisd1e00734f8a9
diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py
index 7683f6f..21fc64a 100644
--- a/rembg/commands/b_command.py
+++ b/rembg/commands/b_command.py
@@ -162,7 +162,7 @@ def b_command(
if not img_bytes:
break
- img = Image.frombytes("RGB", (image_width, image_height), img_bytes)
+ img = PILImage.frombytes("RGB", (image_width, image_height), img_bytes)
output = remove(img, session=session, **kwargs)
if output_specifier: