Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
GrimPixel opened this issue Jan 29, 2024 · 0 comments
Open

Comments

@GrimPixel
Copy link

GrimPixel commented Jan 29, 2024

Traceback (most recent call last):
  File "/home/user/Apps/144_blocks/144_blocks.py", line 344, in <module>
    (colour_arr, block_size, acts) = read_settings_file(settings_filename, root)    
                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/Apps/144_blocks/read_write.py", line 69, in read_settings_file
    act_image = tk.PhotoImage(master=tk_master, file=shrinkImage(config['activities'][act]['icon'],SIZE_SETTING))
                                                     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
  File "/home/user/Apps/144_blocks/read_write.py", line 49, in shrinkImage
    img = img.resize((basewidth, hsize), PIL.Image.ANTIALIAS)
                                         ^^^^^^^^^^^^^^^^^^^
AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

It works well after removing , PIL.Image.ANTIALIAS.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant