Skip to content

Commit 5e5b289

Browse files
authored
Merge pull request #4515 from hugovk/png-regression-docs
Release notes for 7.1.1
2 parents feb787d + c2a0005 commit 5e5b289

2 files changed

Lines changed: 31 additions & 0 deletions

File tree

CHANGES.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,12 @@
22
Changelog (Pillow)
33
==================
44

5+
7.1.1 (2020-04-02)
6+
------------------
7+
8+
- Fix regression seeking and telling PNGs #4512 #4514
9+
[hugovk, radarhere]
10+
511
7.1.0 (2020-04-01)
612
------------------
713

docs/releasenotes/7.1.1.rst

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
7.1.1
2+
-----
3+
4+
Fix regression seeking PNG files
5+
================================
6+
7+
This fixes a regression introduced in 7.1.0 when adding support for APNG files when calling
8+
``seek`` and ``tell``:
9+
10+
.. code-block:: python
11+
12+
>>> from PIL import Image
13+
>>> with Image.open("Tests/images/hopper.png") as im:
14+
... im.seek(0)
15+
...
16+
Traceback (most recent call last):
17+
File "<stdin>", line 2, in <module>
18+
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 739, in seek
19+
if not self._seek_check(frame):
20+
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/ImageFile.py", line 306, in _seek_check
21+
return self.tell() != frame
22+
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/PIL/PngImagePlugin.py", line 827, in tell
23+
return self.__frame
24+
AttributeError: 'PngImageFile' object has no attribute '_PngImageFile__frame'
25+
>>>

0 commit comments

Comments
 (0)