- newest tifffile requires keyword arguments

This commit is contained in:
Wim Pomp
2022-05-19 16:12:56 +02:00
parent d0a33de804
commit c09bba61bc
2 changed files with 2 additions and 2 deletions

View File

@@ -378,7 +378,7 @@ class IJTiffFile:
def ij_tiff_frame(self, frame):
with BytesIO() as framedata:
with tifffile.TiffWriter(framedata, self.header.bigtiff, self.header.byteorder) as t:
with tifffile.TiffWriter(framedata, bigtiff=self.header.bigtiff, byteorder=self.header.byteorder) as t:
# predictor=True might save a few bytes, but requires the package imagecodes to save floats
t.write(frame, compression=(8, 9), contiguous=True, predictor=False)
return framedata.getvalue()