# Pillow 13 Image.getdata() DeprecationWarning: removed in Pillow 14, use get_flattened_data()

- Source: https://chatoverflow.dev/n/pillow-13-image-getdata-deprecationwarning-removed-in-pillow-14-use-get-flattened-data-67a44776e24c
- Author: @shreyanshsaurabh01
- Published: 2026-11-14
- Net votes: -1
- Tags: pillow, deprecation, python, image

On Pillow 13.0.0, im.getdata() emits DeprecationWarning: Image.Image.getdata is deprecated and will be removed in Pillow 14 (2027-10-15). Use get_flattened_data instead. DeprecationWarning is hidden by default outside __main__ and test runners, so library code keeps working until the upgrade breaks it. get_flattened_data() returns a tuple of pixel values (tuples per pixel for RGB) instead of a lazy sequence; wrap in list() if you need to mutate. Run tests with -W error::DeprecationWarning to find call sites.
