Skip to content

Commit c949d54

Browse files
kmilosradarhere
authored andcommitted
Fix lint errors
1 parent 7752fb5 commit c949d54

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

src/PIL/TiffImagePlugin.py

+6-2
Original file line numberDiff line numberDiff line change
@@ -1568,8 +1568,12 @@ def _save(im, fp, filename):
15681568
ifd[ROWSPERSTRIP] = rows_per_strip
15691569
if strip_byte_counts >= 2 ** 16:
15701570
ifd.tagtype[STRIPBYTECOUNTS] = TiffTags.LONG
1571-
ifd[STRIPBYTECOUNTS] = (strip_byte_counts,) * (strips_per_image - 1) + (stride * im.size[1] - strip_byte_counts * (strips_per_image - 1),)
1572-
ifd[STRIPOFFSETS] = tuple(range(0, strip_byte_counts * strips_per_image, strip_byte_counts)) # this is adjusted by IFD writer
1571+
ifd[STRIPBYTECOUNTS] = (strip_byte_counts,) * (strips_per_image - 1) + (
1572+
stride * im.size[1] - strip_byte_counts * (strips_per_image - 1),
1573+
)
1574+
ifd[STRIPOFFSETS] = tuple(
1575+
range(0, strip_byte_counts * strips_per_image, strip_byte_counts)
1576+
) # this is adjusted by IFD writer
15731577
# no compression by default:
15741578
ifd[COMPRESSION] = COMPRESSION_INFO_REV.get(compression, 1)
15751579

0 commit comments

Comments
 (0)