diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 5cf3fa097..3ea8dd533 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -464,8 +464,9 @@ Pillow identifies, reads, and writes PNG files containing ``1``, ``L``, ``LA``, v1.1.7. As of Pillow 6.0, EXIF data can be read from PNG images. However, unlike other -image formats, EXIF data is not guaranteed to have been read until -:py:meth:`~PIL.Image.Image.load` has been called. +image formats, EXIF data is not guaranteed to be present in +:py:attr:`~PIL.Image.Image.info` until :py:meth:`~PIL.Image.Image.load` has been +called. The :py:meth:`~PIL.Image.Image.open` method sets the following :py:attr:`~PIL.Image.Image.info` properties, when appropriate: diff --git a/docs/releasenotes/6.0.0.rst b/docs/releasenotes/6.0.0.rst index 9b5ec2d4f..18a53b4e0 100644 --- a/docs/releasenotes/6.0.0.rst +++ b/docs/releasenotes/6.0.0.rst @@ -165,12 +165,20 @@ language-specific glyphs and ligatures from the font: * ``ImageFont.ImageFont.getsize_multiline()`` * ``ImageFont.ImageFont.getsize()`` +Added EXIF class +^^^^^^^^^^^^^^^^ + +:py:meth:`~PIL.Image.Image.getexif` has been added, and returning an +:py:class:`~PIL.Image.Exif` instance. Values can be retrieved and set like a +dictionary. When saving JPEG, PNG or WEBP, the instance can be passed as an +``exif`` argument to include any changes in the output image. + PNG EXIF data ^^^^^^^^^^^^^ EXIF data can now be read from and saved to PNG images. However, unlike other image -formats, EXIF data is not guaranteed to have been read until -:py:meth:`~PIL.Image.Image.load` has been called. +formats, EXIF data is not guaranteed to be present in :py:attr:`~PIL.Image.Image.info` +until :py:meth:`~PIL.Image.Image.load` has been called. Other Changes =============