Skip to content

getpixel() should work with list of length 2 #7352

@cipri-tom

Description

@cipri-tom

What did you do?

img.getpixel([473, 653])

What did you expect to happen?

the pixel at that position is returned

What actually happened?

An unexpected error message: TypeError: argument must be sequence of length 2

But the argument is a sequence of length 2

What are your OS, Python and Pillow versions?

  • OS: Ubuntu 18.04
  • Python: 3.9
  • Pillow: '9.4.0'
img = Image.open('test.png')
img.getpixel([473, 653])

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions