Skip to content

Commit

Permalink
Update tiff.py
Browse files Browse the repository at this point in the history
1. ```TiffWriter.write()``` receives ```compression``` instead of ```compress```
2. ```TiffWriter.write()`` instead of ```TiffWriter.save()``
  • Loading branch information
JoohyungLee0106 authored Nov 8, 2022
1 parent a6c59bd commit ed12769
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/cucim/src/cucim/clara/converter/tiff.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ def svs2tif(input_file, output_folder, tile_size, overlap,
else:
subfiletype = SUBFILETYPE_NONE

tif.save(
tif.write(
src_arr,
software="Glencoe/Faas pyramid",
metadata={"axes": "YXC"},
Expand All @@ -174,7 +174,7 @@ def svs2tif(input_file, output_folder, tile_size, overlap,
y_resolution // 2 ** level,
resolution_unit,
),
compress=("jpeg", 95), # requires imagecodecs
compression=("jpeg", 95), # requires imagecodecs
subfiletype=subfiletype,
)
logger.info("Done.")
Expand Down

0 comments on commit ed12769

Please sign in to comment.