ultimatevocalremovergui
ultimatevocalremovergui copied to clipboard
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
how to fix? thx a lot
If you didn't resolve this or anyone else runs into the same... the following fixed it for me. Info : my install is py 3.10, pillow 0.9.3. Antialias is being downgraded and should be changed anyway. Edit the file below. You can use a text editor that keeps lines (notepad++ if you don't have vs code.)
ERROR: AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'
FIX: edit
if keep_aspect: img = img.resize((size[0], int(size[0] * ratio)), Image.Resampling.LANCZOS) # img = img.resize((size[0], int(size[0] * ratio)), Image.ANTIALIAS) else: img = img.resize(size, Image.Resampling.LANCZOS) #img = img.resize(size, Image.ANTIALIAS)
You can just remove the commented lines (#) but I left the originals in