diff --git a/rembg/commands/b_command.py b/rembg/commands/b_command.py index 7683f6f3..21fc64a1 100644 --- a/rembg/commands/b_command.py +++ b/rembg/commands/b_command.py @@ -162,7 +162,7 @@ async def main(): 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: