Skip to content

Pillow deprecation warning: Image.Image.getdata will be removed in Pillow 14 #146

@titusz

Description

@titusz

Description

When using iscc-sdk with recent versions of Pillow, deprecation warnings are raised:

DeprecationWarning: Image.Image.getdata is deprecated and will be removed in Pillow 14 (2027-10-15). Use get_flattened_data instead.

Affected locations

  • iscc_sdk/image.py:301 - data = list(img.getdata())
  • iscc_sdk/image.py:67 - pixels = im.getdata()

Suggested fix

Replace img.getdata() with img.get_flattened_data() as recommended by Pillow.

Environment

  • iscc-sdk: 0.8.x
  • Pillow: 11.x+
  • Python: 3.12

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