diff --git a/docs/handbook/image-file-formats.rst b/docs/handbook/image-file-formats.rst index 9aafbdd1c..c1cfecbf8 100644 --- a/docs/handbook/image-file-formats.rst +++ b/docs/handbook/image-file-formats.rst @@ -105,8 +105,8 @@ Reading sequences ~~~~~~~~~~~~~~~~~ The GIF loader supports the :py:meth:`~file.seek` and :py:meth:`~file.tell` -methods. You can seek to the next frame (``im.seek(im.tell() + 1)``), or rewind -the file by seeking to the first frame. Random access is not supported. +methods. You can combine these methods to seek to the next frame +(``im.seek(im.tell() + 1)``). ``im.seek()`` raises an ``EOFError`` if you try to seek after the last frame. diff --git a/docs/handbook/tutorial.rst b/docs/handbook/tutorial.rst index 13a7deba6..b05972f93 100644 --- a/docs/handbook/tutorial.rst +++ b/docs/handbook/tutorial.rst @@ -396,10 +396,6 @@ Reading sequences As seen in this example, you’ll get an :py:exc:`EOFError` exception when the sequence ends. -Note that most drivers in the current version of the library only allow you to -seek to the next frame (as in the above example). To rewind the file, you may -have to reopen it. - The following class lets you use the for-statement to loop over the sequence: Using the ImageSequence Iterator class diff --git a/src/PIL/Image.py b/src/PIL/Image.py index 51d6e8466..c77a4cfe2 100644 --- a/src/PIL/Image.py +++ b/src/PIL/Image.py @@ -2005,9 +2005,6 @@ class Image(object): **EOFError** exception. When a sequence file is opened, the library automatically seeks to frame 0. - Note that in the current version of the library, most sequence - formats only allow you to seek to the next frame. - See :py:meth:`~PIL.Image.Image.tell`. :param frame: Frame number, starting at 0.