Page 1 of 1
converting 16b grayscale LZW TIF to 16b grayscale uncompressed TIF
Posted: 2016-08-30T20:55:19-07:00
by jp2112
I am looking for a way to read in a 16bpp true grayscale TIF that used LZW compression and resave it without compression as 16bpp grayscale TIF. Can ImageMagick do that?
Re: converting 16b grayscale LZW TIF to 16b grayscale uncompressed TIF
Posted: 2016-08-30T21:30:56-07:00
by GeeMack
jp2112 wrote:I am looking for a way to read in a 16bpp true grayscale TIF that used LZW compression and resave it without compression as 16bpp grayscale TIF. Can ImageMagick do that?
With current release ImageMagick 6 you should be able to do that with a command something like this...
Code: Select all
convert input.tif -type grayscale -compress none -depth 16 output.tif
With ImageMagick 7 you'd use the command "magick" instead...
Code: Select all
magick input.tif -type grayscale -compress none -depth 16 output.tif
Re: converting 16b grayscale LZW TIF to 16b grayscale uncompressed TIF
Posted: 2016-08-30T22:12:45-07:00
by fmw42
I believe that to do what GeeMack said, you have to have an IM version compiled at Q16 or higher, not Q8. But the default IM compile is already Q16. So if you are starting new, the that install should be fine.
Re: converting 16b grayscale LZW TIF to 16b grayscale uncompressed TIF
Posted: 2016-08-31T00:37:56-07:00
by jp2112
I downloaded ImageMagick-7.0.2-10-Q16-x64-dll.exe and ran the above "magick" script and it worked! Wow, thanks for the fast reply!