:py:meth:`~PIL.Image.Image.getdata` has been deprecated. :py:meth:`~PIL.Image.Image.get_flattened_data` can be used instead. This new method is identical, except that it returns a tuple of pixel values, instead of an internal Pillow data type.
To match the behavior of :py:meth:`~PIL.ImageMorph.LutBuilder.build_lut`, :py:meth:`~PIL.ImageMorph.LutBuilder.build_default_lut()` now returns the new LUT.
:py:meth:`~PIL.Image.Image.get_flattened_data` is identical to the deprecated :py:meth:`~PIL.Image.Image.getdata`, except that the new method returns a tuple of pixel values, instead of an internal Pillow data type.
When using :py:meth:`~PIL.ImageGrab.grab`, a specific window can now be selected on macOS in addition to Windows. On macOS, this is a CGWindowID:
from PIL import ImageGrab ImageGrab.grab(window=cgwindowid)
:py:class:`~PIL.ImageMorph.MorphOp` now supports both 1 mode and L mode images.