Skip to content

Commit

Permalink
Merge pull request #7020 from radarhere/no_libtiff
Browse files Browse the repository at this point in the history
  • Loading branch information
hugovk authored Mar 21, 2023
2 parents 2b16494 + 5080d35 commit 5832362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/PIL/TiffImagePlugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down

0 comments on commit 5832362

Please sign in to comment.