mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-08-07 22:04:46 +03:00
ignore vendor defined tags in python parsing
This commit is contained in:
parent
051398c3e9
commit
c7862f57c2
|
@ -1122,7 +1122,7 @@ def _save(im, fp, filename):
|
|||
# save(load('')) == original file.
|
||||
for k, v in itertools.chain(ifd.items(),
|
||||
getattr(im, 'ifd', {}).items()):
|
||||
if k not in atts and k not in blocklist:
|
||||
if k not in atts and k not in blocklist and k < 1024:
|
||||
if type(v[0]) == tuple and len(v) > 1:
|
||||
# A tuple of more than one rational tuples
|
||||
# flatten to floats,
|
||||
|
|
Loading…
Reference in New Issue
Block a user