Skip to content

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

Description

@Brohann3214

Hey UnsignedArduino! I keep getting this error and it is getting really frustrating.
here is the full error thingy
Arguments received: Namespace(input=PosixPath('catty.png'), output=None, preview=True, width=None, height=None, palette='#000000,#ffffff,#ff2121,#ff93c4,#ff8135,#fff609,#249ca3,#78dc52,#003fad,#87f2ff,#8e2ec4,#a4839f,#5c406c,#e5cdc4,#91463d,#000000', gif=False) Opening image /Users/mynamehere/Documents/GitHub/Image-to-MakeCode-Arcade/catty.png Size: 400x400 Width and height were not specified, defaulting to width of 160 pixels and auto-calculated height! Target size: 160x(auto) New size: 160x160 Traceback (most recent call last): File "/Users/mynamehere/Documents/GitHub/Image-to-MakeCode-Arcade/main.py", line 99, in <module> output_image = input_image.resize((new_width, new_height), Image.ANTIALIAS) ^^^^^^^^^^^^^^^ AttributeError: module 'PIL.Image' has no attribute 'ANTIALIAS'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions