mirror of
https://github.com/python-pillow/Pillow.git
synced 2024-12-27 10:26:19 +03:00
Corrected seek documentation [ci skip]
This commit is contained in:
parent
7ca0c189e3
commit
7a845ee2e7
|
@ -667,21 +667,18 @@ numbers are returned as a tuple of ``(numerator, denominator)``.
|
||||||
|
|
||||||
.. deprecated:: 3.0.0
|
.. deprecated:: 3.0.0
|
||||||
|
|
||||||
|
|
||||||
Reading Multi-frame TIFF Images
|
Reading Multi-frame TIFF Images
|
||||||
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
The TIFF loader supports the :py:meth:`~PIL.Image.Image.seek` and
|
The TIFF loader supports the :py:meth:`~PIL.Image.Image.seek` and
|
||||||
:py:meth:`~PIL.Image.Image.tell` methods, taking and returning frame
|
:py:meth:`~PIL.Image.Image.tell` methods, taking and returning frame numbers
|
||||||
numbers within the image file. Frames are numbered from 0 to
|
within the image file. You can combine these methods to seek to the next frame
|
||||||
`im.num_frames - 1`. You can seek to the next frame
|
(``im.seek(im.tell() + 1)``). Frames are numbered from 0 to ``im.num_frames - 1``,
|
||||||
(``im.seek(im.tell() + 1)``), or rewind the file by seeking to the
|
and can be accessed in any order.
|
||||||
first frame. Images can be accessed in any order.
|
|
||||||
|
|
||||||
``im.seek()`` raises an :py:exc:`EOFError` if you try to seek after the
|
``im.seek()`` raises an :py:exc:`EOFError` if you try to seek after the
|
||||||
last frame.
|
last frame.
|
||||||
|
|
||||||
|
|
||||||
Saving Tiff Images
|
Saving Tiff Images
|
||||||
~~~~~~~~~~~~~~~~~~
|
~~~~~~~~~~~~~~~~~~
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user