T O P I C R E V I E W |
izaque |
Posted - May 28 2012 : 12:31:22 In ImageEn manual says that "TIOTiff_Compression" ioTIFF_G4FAX Bilevel Group 4 CCITT compression, bidimensional. "Only black / white images," in the alpha channel.
What is the compression method for grayscale TIFF? ioTIFF_G4FAX? |
4 L A T E S T R E P L I E S (Newest First) |
izaque |
Posted - May 29 2012 : 05:25:52 Thank you Fabrizio, now is working fine! |
fab |
Posted - May 28 2012 : 22:28:23 For a bug on current version you should set SamplesPerPixel=3. Setting ioJPEG_GRAYLEV anyway ignore SamplesPerPixel (assuming 1).
|
izaque |
Posted - May 28 2012 : 16:22:34 I used the following code for compressing grayscale:
ImgMDigitalizar.MIO.Params [i]. BitsPerSample: = 8; ImgMDigitalizar.MIO.Params [i]. Samplesperpixel: = 1;
ImgMDigitalizar.MIO.Params [i]. TIFF_Compression: = ioTIFF_JPEG; ImgMDigitalizar.MIO.Params [i]. TIFF_JPEGColorSpace: = ioJPEG_GRAYLEV;
However the image is not compressed. Please, what's wrong? |
fab |
Posted - May 28 2012 : 14:47:08 Gray scale is supported only with: - ioTIFF_UNCOMPRESSED - ioTIFF_LZW - ioTIFF_JPEG - ioTIFF_PACKBITS - ioTIFF_ZIP - ioTIFF_DEFLATE
As described in revision 6.0 of TIFF specification (except for ZIP and DEFLATE). |