ultimatevocalremovergui icon indicating copy to clipboard operation
ultimatevocalremovergui copied to clipboard

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

Open hyrulelinks opened this issue 1 year ago • 1 comments

how to fix? thx a lot

hyrulelinks avatar Sep 12 '23 17:09 hyrulelinks

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 \gui_data\app_size_values.py From lines 134 down...

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

Grover864 avatar Mar 11 '24 18:03 Grover864