rembg icon indicating copy to clipboard operation
rembg copied to clipboard

[BUG] Please update remove to not use deprecated PIL resampling function!

Open gobenchain opened this issue 3 years ago • 0 comments

Remove() no longer works because the new PIL version no longer supports the "Resampling" method.

Line 21 in session_base.py should be changed to: im = img.convert("RGB").resize(size, Image.LANCZOS)

Thanks :)

gobenchain avatar Nov 11 '22 01:11 gobenchain