mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-07-10 00:02:24 +03:00
Test opening TIFF with JPEGTables and saving it
This commit is contained in:
parent
71a8d8db07
commit
e60683e3b1
|
@ -298,6 +298,19 @@ class TestFileTiff(PillowTestCase):
|
||||||
# Assert
|
# Assert
|
||||||
self.assertEqual(ret, [0, 1])
|
self.assertEqual(ret, [0, 1])
|
||||||
|
|
||||||
|
def test_save_tiff_with_jpegtables(self):
|
||||||
|
# Arrange
|
||||||
|
outfile = self.tempfile("temp.tif")
|
||||||
|
|
||||||
|
# Created with ImageMagick: convert hopper.jpg hopper_jpg.tif
|
||||||
|
# Contains JPEGTables (347) tag
|
||||||
|
infile = "Tests/images/hopper_jpg.tif"
|
||||||
|
im = Image.open(infile)
|
||||||
|
|
||||||
|
# Act / Assert
|
||||||
|
# Should not raise UnicodeDecodeError or anything else
|
||||||
|
im.save(outfile)
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue
Block a user