mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-28 02:04:36 +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:
|
except io.UnsupportedOperation:
|
||||||
pass
|
pass
|
||||||
|
|
||||||
# ICC Profile crashes.
|
# STRIPOFFSETS and STRIPBYTECOUNTS are added by the library
|
||||||
blocklist = [STRIPOFFSETS, STRIPBYTECOUNTS, ROWSPERSTRIP, ICCPROFILE]
|
# based on the data in the strip.
|
||||||
|
# ICCPROFILE crashes.
|
||||||
|
blocklist = [STRIPOFFSETS, STRIPBYTECOUNTS, ICCPROFILE]
|
||||||
atts = {}
|
atts = {}
|
||||||
# bits per sample is a single short in the tiff directory, not a list.
|
# bits per sample is a single short in the tiff directory, not a list.
|
||||||
atts[BITSPERSAMPLE] = bits[0]
|
atts[BITSPERSAMPLE] = bits[0]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user