Skip to content

Commit 5832362

Browse files
authored
Merge pull request #7020 from radarhere/no_libtiff
2 parents 2b16494 + 5080d35 commit 5832362

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/PIL/TiffImagePlugin.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1807,7 +1807,7 @@ def _save(im, fp, filename):
18071807
# Custom items are supported for int, float, unicode, string and byte
18081808
# values. Other types and tuples require a tagtype.
18091809
if tag not in TiffTags.LIBTIFF_CORE:
1810-
if not Image.core.libtiff_support_custom_tags:
1810+
if not getattr(Image.core, "libtiff_support_custom_tags", False):
18111811
continue
18121812

18131813
if tag in ifd.tagtype:

0 commit comments

Comments
 (0)