Skip to content

Pillow 8.3 and NumPy #5571

@doublex

Description

@doublex

Throws exception with Pillow 8.3: TypeError: __array__() takes 1 positional argument but 2 were given

with PIL.Image.open(filepath) as img:
    numpy.array( img, dtype=numpy.float32 )

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions