Questions and postings pertaining to the development of ImageMagick, feature enhancements, and ImageMagick internals. ImageMagick source code and algorithms are discussed here. Usage questions which are too arcane for the normal user list should also be posted here.
Obviously I am relatively new to Magick++. I read in a 16-bit TIF file, but its depth prints as 8, and the resultant JPEG2000 file is also only 8 bpp. Can you tell me what I'm doing wrong? Thank you.
Okay. Sorry, I can't help with Magic++. All I can suggest is upgrading to a more recent version. JP2 is a relatively new format, and IM v6.6.9 is very old.
personalrobert wrote:6.6.9-7 is dated Aug 17, 2012. That may be "old", but "very old" is a stretch.
That would probably be the date it was compiled on your platform. My copy of the source for 6.6.9-7 is from around the end of April 2011.
Somewhere between "old" and "very old".
I believe my problem is that the version of the Magick++ library I am using is 8-bit, and therefore the 16-bit image being read is converted to 8-bit when I call read(). Does this sound like a reasonable conclusion?
You said it was "Version: ImageMagick 6.6.9-7 2012-08-17 Q16", which is 16-bit. But your library might be a different version, I suppose. If it is 8-bit, then all files it writes will be 8-bit.
The version output was from "convert -version", but Magick::Quantum is 1 (byte) and MaxRGB is 255, so I think you are right that my command line utilities are 16-bit and my library is 8.