Renamed variable

Co-authored-by: Hugo van Kemenade <hugovk@users.noreply.github.com>
This commit is contained in:
Andrew Murray 2020-06-20 22:41:04 +10:00 committed by GitHub
parent b3604167ad
commit 8a51ad07fd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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)