Possible fix for issue #1561, let rows per strip through, but block the other two

This commit is contained in:
wiredfool 2015-12-09 20:39:49 +00:00
parent b68bb56b64
commit fe35a18db0

View File

@ -1277,8 +1277,10 @@ def _save(im, fp, filename):
except io.UnsupportedOperation:
pass
# ICC Profile crashes.
blocklist = [STRIPOFFSETS, STRIPBYTECOUNTS, ROWSPERSTRIP, ICCPROFILE]
# STRIPOFFSETS and STRIPBYTECOUNTS are added by the library
# based on the data in the strip.
# ICCPROFILE crashes.
blocklist = [STRIPOFFSETS, STRIPBYTECOUNTS, ICCPROFILE]
atts = {}
# bits per sample is a single short in the tiff directory, not a list.
atts[BITSPERSAMPLE] = bits[0]