Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

fix lint

Daniel Gatisd0b68059de53
diff --git a/src/rembg/bg.py b/src/rembg/bg.py
index 56c9cb2..f2a613d 100644
--- a/src/rembg/bg.py
+++ b/src/rembg/bg.py
@@ -82,7 +82,11 @@ def resize_image(img, width, height):
original_width, original_height = img.size
width = original_width if width is None else width
height = original_height if height is None else height
- return img.resize((width, height)) if original_width != width or original_height != height else img
+ return (
+ img.resize((width, height))
+ if original_width != width or original_height != height
+ else img
+ )
def remove(