mirror of
https://github.com/python-pillow/Pillow.git
synced 2025-01-26 09:14:27 +03:00
Renamed variable
Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
parent
b3604167ad
commit
8a51ad07fd
|
@ -1508,10 +1508,10 @@ def _save(im, fp, filename):
|
|||
# data orientation
|
||||
stride = len(bits) * ((im.size[0] * bits[0] + 7) // 8)
|
||||
ifd[ROWSPERSTRIP] = im.size[1]
|
||||
stripByteCounts = stride * im.size[1]
|
||||
if stripByteCounts >= 2 ** 16:
|
||||
strip_byte_counts = stride * im.size[1]
|
||||
if strip_byte_counts >= 2 ** 16:
|
||||
ifd.tagtype[STRIPBYTECOUNTS] = TiffTags.LONG
|
||||
ifd[STRIPBYTECOUNTS] = stripByteCounts
|
||||
ifd[STRIPBYTECOUNTS] = strip_byte_counts
|
||||
ifd[STRIPOFFSETS] = 0 # this is adjusted by IFD writer
|
||||
# no compression by default:
|
||||
ifd[COMPRESSION] = COMPRESSION_INFO_REV.get(compression, 1)
|
||||
|
|
Loading…
Reference in New Issue
Block a user