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

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
User avatar
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

Post 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.
Last edited by fmw42 on 2008-02-23T19:02:00-07:00, edited 1 time in total.
User avatar
magick
Site Admin
Posts: 11064
Joined: 2003-05-31T11:32:55-07:00

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

Post by magick »

We have a patch for this problem in ImageMagick 6.3.9-0 Beta available sometime tomorrow.
Post Reply