I do photography on the side. I always ask for scans in TIFF format and always get scans in uncompressed TIFF formats. Because I value my disk space, I use magick to compress the TIFFs using LZW and get 15-20% of the file size back.
I have been trying to use this crate to do just that. This is the code I used:
.tif is the original. .lzwtiff was created using image-tiff and LZW compression, .unctiff was created using image-tiff and uncompressed output. The .tiff file was created using magick -compress lzw.
How is this possible ? Am I doing something wrong ?
I do photography on the side. I always ask for scans in TIFF format and always get scans in uncompressed TIFF formats. Because I value my disk space, I use magick to compress the TIFFs using LZW and get 15-20% of the file size back.
I have been trying to use this crate to do just that. This is the code I used:
(This is a quick and dirty attempt and the input files come as
.tif
, so no conflicts when I use the.tiff
extension)Now this script produces compressed TIFF files BIGGER than uncompressed originals. Is this not crazy ?
.tif
is the original..lzwtiff
was created usingimage-tiff
and LZW compression,.unctiff
was created usingimage-tiff
and uncompressed output. The.tiff
file was created usingmagick -compress lzw
.How is this possible ? Am I doing something wrong ?