dannydeezy / mosaics

Community generated recursive mosaic inscriptions
MIT License
8 stars 5 forks source link

Image.ANTIALIAS in PIL #5

Closed kc29wang closed 1 year ago

kc29wang commented 1 year ago

_Processing main image... Traceback (most recent call last): File "C:\Users\c29wa\mosaics\mosaic.py", line 501, in mosaic(source_image, tile_dir_list, image_title, slug_names) File "C:\Users\c29wa\mosaics\mosaic.py", line 473, in mosaic image_data = TargetImage(img_path).get_data() ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\c29wa\mosaics\mosaic.py", line 94, in get_data largeimg = img.resize((w, h), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

It looks like the latest version of pillow (PIL) deprecated Image.ANTIALIAS.

Please either downgrade your PIL version, or remove all "Image.ANTIALIA" from mosaic.py file.

dannydeezy commented 1 year ago

thank you @c29wang - i just fixed it by removing the Image.ANTIALIAS option - it doesn't seem necessary anyway