Skip to content

Commit 7f7d5aa

Browse files
authored
Move intro text below its header
Allows hotlinking to include relevant intro: https://pillow.readthedocs.io/en/latest/reference/Image.html#create-thumbnails
1 parent 1591c53 commit 7f7d5aa

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

docs/reference/Image.rst

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -12,25 +12,25 @@ images.
1212
Examples
1313
--------
1414

15+
Open, rotate, and display an image (using the default viewer)
16+
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
17+
1518
The following script loads an image, rotates it 45 degrees, and displays it
1619
using an external viewer (usually xv on Unix, and the paint program on
1720
Windows).
1821

19-
Open, rotate, and display an image (using the default viewer)
20-
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
21-
2222
.. code-block:: python
2323
2424
from PIL import Image
2525
im = Image.open("bride.jpg")
2626
im.rotate(45).show()
2727
28-
The following script creates nice thumbnails of all JPEG images in the
29-
current directory preserving aspect ratios with 128x128 max resolution.
30-
3128
Create thumbnails
3229
^^^^^^^^^^^^^^^^^
3330

31+
The following script creates nice thumbnails of all JPEG images in the
32+
current directory preserving aspect ratios with 128x128 max resolution.
33+
3434
.. code-block:: python
3535
3636
from PIL import Image

0 commit comments

Comments
 (0)