nadermx / backgroundremover

Background Remover lets you Remove Background from images and video using AI with a simple command line interface that is free and open source.
https://www.backgroundremoverai.com
MIT License
6.43k stars 534 forks source link

AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS' #121

Closed JuanjoCatalaGarrido closed 3 months ago

JuanjoCatalaGarrido commented 5 months ago

Pillow=>10.0 seems to have removed attribute "Image".

Downgrading to Pillow==9.5.0 seems to fix the bug

Renvect commented 5 months ago

Its depriciated nowdays. In one project i was doing with PIL i found that; LANCZOS instead of ANTIALIAS works in my case and for my use case correct one would be PIL.Image.Resampling.LANCZOS instead of ANTIALIAS. Not sure how would it affect this project but you can give it a try

nadermx commented 5 months ago

I'll try this out in a few days

On Sat, Jan 27, 2024, 5:10 PM GPTdomaine @.***> wrote:

Its depriciated nowdays. In one project i was doing with PIL i found that; LANCZOS instead of ANTIALIAS works in my case and for my use case correct one would be PIL.Image.Resampling.LANCZOS instead of ANTIALIAS. Not sure how would it affect this project but you can give it a try

— Reply to this email directly, view it on GitHub https://github.com/nadermx/backgroundremover/issues/121#issuecomment-1913087209, or unsubscribe https://github.com/notifications/unsubscribe-auth/ABYACXGXGNTPFVCBH7UKVHDYQTAALAVCNFSM6AAAAABCAAFOC2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSMJTGA4DOMRQHE . You are receiving this because you are subscribed to this thread.Message ID: @.***>

nadermx commented 3 months ago

closed in https://github.com/nadermx/backgroundremover/commit/ecd561b61f18bbdcbac48b4929a12bb6508a9d8f