From 7f7d5aa183d2b687461966d307ece0b015049b43 Mon Sep 17 00:00:00 2001 From: Hugo Date: Wed, 28 Feb 2018 14:50:02 +0200 Subject: [PATCH] Move intro text below its header Allows hotlinking to include relevant intro: https://pillow.readthedocs.io/en/latest/reference/Image.html#create-thumbnails --- docs/reference/Image.rst | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/docs/reference/Image.rst b/docs/reference/Image.rst index 216c71d62..9a9bf57d7 100644 --- a/docs/reference/Image.rst +++ b/docs/reference/Image.rst @@ -12,25 +12,25 @@ images. Examples -------- +Open, rotate, and display an image (using the default viewer) +^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ + The following script loads an image, rotates it 45 degrees, and displays it using an external viewer (usually xv on Unix, and the paint program on Windows). -Open, rotate, and display an image (using the default viewer) -^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ - .. code-block:: python from PIL import Image im = Image.open("bride.jpg") im.rotate(45).show() -The following script creates nice thumbnails of all JPEG images in the -current directory preserving aspect ratios with 128x128 max resolution. - Create thumbnails ^^^^^^^^^^^^^^^^^ +The following script creates nice thumbnails of all JPEG images in the +current directory preserving aspect ratios with 128x128 max resolution. + .. code-block:: python from PIL import Image