Page 1 of 1

IM Q16 convert from 8-bit to 16-bit grayscale

Posted: 2008-02-23T13:50:21-07:00
by fmw42
How can I convert an 8-bit grayscale image to a 16-bits tiff WITHOUT modifying any pixel values.

I have tried:

convert <infile> -depth 16 <outfile> but this still gives 8-bits according to identify -verbose info:

similarly for

convert <infile> -level 0%,100% -depth 16 <outfile> but this still gives 8-bits according to identify -verbose info:

However, if I do;

onvert <infile> -level 0.01%,100% -depth 16 <outfile> I get a 16-bit grayscale image, but I have changed slightly the image information according to compare -metric rmse <infile> <outfile> null:

I would like a way to simply convert the the 8-bit image to tiff 16-bits (on IM Q16) without changing any pixel values.

Re: IM Q16 convert from 8-bit to 16-bit grayscale

Posted: 2008-02-23T19:01:56-07:00
by magick
We have a patch for this problem in ImageMagick 6.3.9-0 Beta available sometime tomorrow.