From a37fc7d31dafcd250f7eb2d959395a4bb319a51c Mon Sep 17 00:00:00 2001 From: Holger Frey Date: Fri, 3 May 2019 09:38:10 +0200 Subject: [PATCH] added lzw compression when saving cuts --- mtor/imageproc.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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