From a8c07e3d5f85af551ae812e131a6a931c3e12f1c Mon Sep 17 00:00:00 2001 From: Andrew Murray Date: Fri, 11 Oct 2019 22:40:31 +1100 Subject: [PATCH] Added orientation note [ci skip] --- docs/handbook/concepts.rst | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/docs/handbook/concepts.rst b/docs/handbook/concepts.rst index 582866345..7e782e743 100644 --- a/docs/handbook/concepts.rst +++ b/docs/handbook/concepts.rst @@ -104,6 +104,15 @@ the file format handler (see the chapter on :ref:`image-file-formats`). Most handlers add properties to the :py:attr:`~PIL.Image.Image.info` attribute when loading an image, but ignore it when saving images. +Orientation +----------- + +A common element of the :py:attr:`~PIL.Image.Image.info` attribute for JPG and +TIFF images is the EXIF orientation tag. This is an instruction for how the +image data should be oriented. For example, it may instruct an image to be +rotated by 90 degrees, or to be mirrored. To apply this information to an +image, :py:meth:`~PIL.ImageOps.exif_transpose` can be used. + .. _concept-filters: Filters