Add support for HEIC files
Thanks to Maxime Morin ( https://www.maijin.fr/ ) for the patch.
This commit is contained in:
parent
2639713709
commit
704367f91e
4 changed files with 35 additions and 0 deletions
|
@ -251,6 +251,12 @@ class TestGetMeta(unittest.TestCase):
|
|||
meta = p.get_meta()
|
||||
self.assertEqual(meta['Name'], 'I am so')
|
||||
|
||||
def test_heic(self):
|
||||
p = images.HEICParser('./tests/data/dirty.heic')
|
||||
meta = p.get_meta()
|
||||
self.assertEqual(meta['ProfileCopyright'], 'Public Domain')
|
||||
self.assertEqual(meta['ProfileDescription'], 'GIMP built-in sRGB')
|
||||
|
||||
|
||||
class TestRemovingThumbnails(unittest.TestCase):
|
||||
def test_odt(self):
|
||||
|
@ -504,6 +510,11 @@ class TestCleaning(unittest.TestCase):
|
|||
'EncodingSettings': 'Lavf52.103.0',
|
||||
},
|
||||
'expected_meta': {},
|
||||
},{
|
||||
'name': 'heic',
|
||||
'parser': images.HEICParser,
|
||||
'meta': {},
|
||||
'expected_meta': {},
|
||||
}
|
||||
]
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue