We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 96516ce + 9006836 commit b3599deCopy full SHA for b3599de
Tests/test_file_gif.py
@@ -308,6 +308,22 @@ def test_n_frames():
308
assert im.is_animated == (n_frames != 1)
309
310
311
+def test_no_change():
312
+ # Test n_frames does not change the image
313
+ with Image.open("Tests/images/dispose_bgnd.gif") as im:
314
+ im.seek(1)
315
+ expected = im.copy()
316
+ assert im.n_frames == 5
317
+ assert_image_equal(im, expected)
318
+
319
+ # Test is_animated does not change the image
320
321
+ im.seek(3)
322
323
+ assert im.is_animated
324
325
326
327
def test_eoferror():
328
with Image.open(TEST_GIF) as im:
329
n_frames = im.n_frames
0 commit comments