Skip to content

armgit / rembg

Public Imported from GitHub
0

Rembg is a tool to remove images background

update to current PIL version

Sami Ede5de947d3a361
diff --git a/rembg/session_base.py b/rembg/session_base.py
index df14011..aa98693 100644
--- a/rembg/session_base.py
+++ b/rembg/session_base.py
@@ -18,7 +18,7 @@ class BaseSession:
std: Tuple[float, float, float],
size: Tuple[int, int],
) -> Dict[str, np.ndarray]:
- im = img.convert("RGB").resize(size, Image.Resampling.LANCZOS)
+ im = img.convert("RGB").resize(size, Image.LANCZOS)
im_ary = np.array(im)
im_ary = im_ary / np.max(im_ary)