Merge pull request #7020 from radarhere/no_libtiff

This commit is contained in:
Hugo van Kemenade 2023-03-21 17:12:59 +02:00 committed by GitHub
commit 5832362215
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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: