Skip to content

Commit

Permalink
using lossless compression i think
Browse files Browse the repository at this point in the history
  • Loading branch information
GelbEinhalb committed Nov 7, 2024
1 parent 5639a93 commit 73297d4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion convert.py
Original file line number Diff line number Diff line change
@@ -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')

0 comments on commit 73297d4

Please sign in to comment.