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.
IM Q16 convert from 8-bit to 16-bit grayscale
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
IM Q16 convert from 8-bit to 16-bit grayscale
Last edited by fmw42 on 2008-02-23T19:02:00-07:00, edited 1 time in total.
Re: IM Q16 convert from 8-bit to 16-bit grayscale
We have a patch for this problem in ImageMagick 6.3.9-0 Beta available sometime tomorrow.