mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-08 06:14:45 +03:00
added test for multi.tif
This commit is contained in:
parent
c7862f57c2
commit
7158894042
20
Tests/test_sequence_tiff.py
Normal file
20
Tests/test_sequence_tiff.py
Normal file
|
@ -0,0 +1,20 @@
|
||||||
|
from helper import unittest, PillowTestCase
|
||||||
|
|
||||||
|
from PIL import Image, ImageSequence, TiffImagePlugin
|
||||||
|
|
||||||
|
TiffImagePlugin.READ_LIBTIFF = True
|
||||||
|
|
||||||
|
class TestFileTiff(PillowTestCase):
|
||||||
|
|
||||||
|
def testSequence(self):
|
||||||
|
try:
|
||||||
|
im = Image.open('multi.tif')
|
||||||
|
index = 0
|
||||||
|
for frame in ImageSequence.Iterator(im):
|
||||||
|
frame.load()
|
||||||
|
self.assertEqual(index, im.tell())
|
||||||
|
index = index+1
|
||||||
|
except Exception as e:
|
||||||
|
self.assertTrue(False, str(e))
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user