mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-14 11:26:27 +03:00
Tiff float tags: Use first val in tuple
This commit is contained in:
parent
0238a80e24
commit
e8553e1dae
|
@ -37,8 +37,8 @@ class TestFileTiffMetadata(PillowTestCase):
|
||||||
|
|
||||||
self.assertEqual(loaded.tag[50838], (len(textdata),))
|
self.assertEqual(loaded.tag[50838], (len(textdata),))
|
||||||
self.assertEqual(loaded.tag[50839], textdata)
|
self.assertEqual(loaded.tag[50839], textdata)
|
||||||
self.assertAlmostEqual(loaded.tag[tag_ids['RollAngle']], floatdata)
|
self.assertAlmostEqual(loaded.tag[tag_ids['RollAngle']][0], floatdata)
|
||||||
self.assertAlmostEqual(loaded.tag[tag_ids['YawAngle']], doubledata)
|
self.assertAlmostEqual(loaded.tag[tag_ids['YawAngle']][0], doubledata)
|
||||||
|
|
||||||
def test_read_metadata(self):
|
def test_read_metadata(self):
|
||||||
img = Image.open('Tests/images/hopper_g4.tif')
|
img = Image.open('Tests/images/hopper_g4.tif')
|
||||||
|
|
Loading…
Reference in New Issue
Block a user