Wrting tiff image with bit depth of 32 or 64
Posted: 2015-04-29T06:04:29-07:00
Hi,
I'm using Magick++ (Q16) on Windows 7. I would like to find a way to write tiff image with bit depth of 32 or even 64. Here's a portion of my C++ code:
Magick::Image m_image;
m_image.type( Magick::TrueColorMatteType );
m_image.fileName( filename );
m_image.depth( bitDepth );
m_image.defineValue( "quantum", "format", "floating-point" );
For a filename having a .tiff extension and a bitDepth of 32 or 64, I would expect IM to write a tiff image with a bit depth of 32 or a 64. Am I doing something wrong? To verify my results, I'm using ImageMagick identify from the command line and I'm always getting something like:
bird_32.tiff TIFF 1280x1024 1280x1024+0+0 16-bit sRGB 10.49MB 0.000u 0:00.000
so I suppose that means my tiff image bit depth is still 16. Is there something I'm not getting? I have been reading many posts on this forum but none address this directly (that I'm aware of...).
Thank you very much!
Julie
I'm using Magick++ (Q16) on Windows 7. I would like to find a way to write tiff image with bit depth of 32 or even 64. Here's a portion of my C++ code:
Magick::Image m_image;
m_image.type( Magick::TrueColorMatteType );
m_image.fileName( filename );
m_image.depth( bitDepth );
m_image.defineValue( "quantum", "format", "floating-point" );
For a filename having a .tiff extension and a bitDepth of 32 or 64, I would expect IM to write a tiff image with a bit depth of 32 or a 64. Am I doing something wrong? To verify my results, I'm using ImageMagick identify from the command line and I'm always getting something like:
bird_32.tiff TIFF 1280x1024 1280x1024+0+0 16-bit sRGB 10.49MB 0.000u 0:00.000
so I suppose that means my tiff image bit depth is still 16. Is there something I'm not getting? I have been reading many posts on this forum but none address this directly (that I'm aware of...).
Thank you very much!
Julie