mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 17:24:31 +03:00
Allow libtiff_support_custom_tags to be missing
This commit is contained in:
parent
2d5f451f58
commit
5080d35816
|
@ -1807,7 +1807,7 @@ def _save(im, fp, filename):
|
|||
# Custom items are supported for int, float, unicode, string and byte
|
||||
# values. Other types and tuples require a tagtype.
|
||||
if tag not in TiffTags.LIBTIFF_CORE:
|
||||
if not Image.core.libtiff_support_custom_tags:
|
||||
if not getattr(Image.core, "libtiff_support_custom_tags", False):
|
||||
continue
|
||||
|
||||
if tag in ifd.tagtype:
|
||||
|
|
Loading…
Reference in New Issue
Block a user