mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Possible fix for issue #1561, let rows per strip through, but block the other two
This commit is contained in:
parent
b68bb56b64
commit
fe35a18db0
|
@ -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]
|
||||
|
|
Loading…
Reference in New Issue
Block a user