mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-04-25 03:23:41 +03:00
Merge pull request #3021 from python-pillow/docs-mv-intro-txt
Docs: Move intro text below its header
This commit is contained in:
commit
fad1835f0a
|
@ -12,25 +12,25 @@ images.
|
||||||
Examples
|
Examples
|
||||||
--------
|
--------
|
||||||
|
|
||||||
|
Open, rotate, and display an image (using the default viewer)
|
||||||
|
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||||
|
|
||||||
The following script loads an image, rotates it 45 degrees, and displays it
|
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
|
using an external viewer (usually xv on Unix, and the paint program on
|
||||||
Windows).
|
Windows).
|
||||||
|
|
||||||
Open, rotate, and display an image (using the default viewer)
|
|
||||||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
|
||||||
|
|
||||||
.. code-block:: python
|
.. code-block:: python
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
im = Image.open("bride.jpg")
|
im = Image.open("bride.jpg")
|
||||||
im.rotate(45).show()
|
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
|
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
|
.. code-block:: python
|
||||||
|
|
||||||
from PIL import Image
|
from PIL import Image
|
||||||
|
|
Loading…
Reference in New Issue
Block a user