From ac9689b5831b2af551586a2330acb54c2902481c Mon Sep 17 00:00:00 2001 From: 0xflotus <0xflotus@gmail.com> Date: Tue, 22 Nov 2022 14:50:23 +0100 Subject: [PATCH] Update image-file-formats.rst --- docs/handbook/image-file-formats.rst | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 68a328406..f70e25fb4 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -271,7 +271,7 @@ Reading local images The GIF loader creates an image memory the same size as the GIF file’s *logical screen size*, and pastes the actual pixel data (the *local image*) into this -image. If you only want the actual pixel rectangle, you can crop the image +image. If you only want the actual pixel rectangle, you can crop the image: .. code-block:: python @@ -454,7 +454,9 @@ The :py:meth:`~PIL.Image.Image.save` method supports the following options: **icc_profile** If present and true, the image is stored with the provided ICC profile. If this parameter is not provided, the image will be saved with no profile - attached. To preserve the existing profile:: + attached. To preserve the existing profile: + +.. code-block:: python im.save(filename, 'jpeg', icc_profile=im.info.get('icc_profile'))