mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-02 02:43:06 +03:00
commit
e9afb39534
|
@ -629,6 +629,14 @@ class TestFilePng:
|
||||||
with Image.open(test_file) as reloaded:
|
with Image.open(test_file) as reloaded:
|
||||||
assert reloaded.info["exif"] == b"Exif\x00\x00exifstring"
|
assert reloaded.info["exif"] == b"Exif\x00\x00exifstring"
|
||||||
|
|
||||||
|
def test_tell(self, tmp_path):
|
||||||
|
with Image.open(TEST_PNG_FILE) as im:
|
||||||
|
assert im.tell() == 0
|
||||||
|
|
||||||
|
def test_seek(self, tmp_path):
|
||||||
|
with Image.open(TEST_PNG_FILE) as im:
|
||||||
|
im.seek(0)
|
||||||
|
|
||||||
|
|
||||||
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
|
@pytest.mark.skipif(is_win32(), reason="Requires Unix or macOS")
|
||||||
@skip_unless_feature("zlib")
|
@skip_unless_feature("zlib")
|
||||||
|
|
|
@ -636,6 +636,7 @@ class PngImageFile(ImageFile.ImageFile):
|
||||||
if self.fp.read(8) != _MAGIC:
|
if self.fp.read(8) != _MAGIC:
|
||||||
raise SyntaxError("not a PNG file")
|
raise SyntaxError("not a PNG file")
|
||||||
self.__fp = self.fp
|
self.__fp = self.fp
|
||||||
|
self.__frame = 0
|
||||||
|
|
||||||
#
|
#
|
||||||
# Parse headers up to the first IDAT or fDAT chunk
|
# Parse headers up to the first IDAT or fDAT chunk
|
||||||
|
|
Loading…
Reference in New Issue
Block a user