diff --git a/mtor/imageproc.py b/mtor/imageproc.py index 2291f3e..d4744d8 100644 --- a/mtor/imageproc.py +++ b/mtor/imageproc.py @@ -57,7 +57,7 @@ def safe_cut(tif_array, parameters): with cut_path.open("wb") as outhandle: cut_array = tif_array.data[top:bottom, left:right] cut_img = Image.fromarray(cut_array) - cut_img.save(outhandle) + cut_img.save(outhandle, compression='tiff_lzw') del cut_img