Merge pull request #5678 from radarhere/n_frames

Corrected property name
This commit is contained in:
Hugo van Kemenade 2021-08-15 11:10:10 +03:00 committed by GitHub
commit d62605c6ff
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -844,7 +844,7 @@ 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 numbers :py:meth:`~PIL.Image.Image.tell` methods, taking and returning frame numbers
within the image file. You can combine these methods to seek to the next frame within the image file. You can combine these methods to 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)``). Frames are numbered from 0 to ``im.n_frames - 1``,
and can be accessed in any order. and 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