From 73297d4ec6261d8b7bd9c62b5a676edba051904c Mon Sep 17 00:00:00 2001 From: GelbEinhalb Date: Thu, 7 Nov 2024 17:19:54 +0100 Subject: [PATCH] using lossless compression i think --- convert.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/convert.py b/convert.py index bfbbbfd..60bc842 100644 --- a/convert.py +++ b/convert.py @@ -15,4 +15,4 @@ def convert(filepath, destination, add_text): add_text(f"[INFO] converting \"{filepath}\" to tiff", destination) with Image.open(filepath) as img: tiff_path = os.path.join(destination, os.path.splitext(os.path.basename(filepath))[0] + '.tiff') - img.save(tiff_path, format='TIFF') + img.save(tiff_path, format='TIFF', compression='tiff_lzw')