Page 1 of 1

B&W tiff with jpg compression

Posted: Sat Jan 30, 2010 8:15 am
by charuvas1
Hi,
I am using gdpicture.net ver6.5.0.3
I am trying to scan a Black and white image and save as tiff with jpg compression. Following is the code used-
oGdPictureImaging.SaveAsTIFF(m_imageid,strfilename, TiffCompression.TiffCompressionJPEG)

no file is saved. I am able to create tiff with jpg compr from colored and gray scale images, but not with BnW images. Can you suggest something? Is this the normal way or is something wrong somewhere?
I am working on an application where all the files are scanned and saved as tiff and later OCRD and converted to pdf files. That is why I am using jpg compression to creat tiffs.

Thank you
Charu

Re: B&W tiff with jpg compression

Posted: Sat Jan 30, 2010 10:29 am
by Loïc
Hi Charu,

JPEG compression scheme is dedicated for 8bit grayscale and true color image only. You can't use this compression form bitonal image, so the behavior is normal.

What I can suggest you is to use JPEG for color & grayscale image & CCITT4 for bitonal.

Let me know if you need more assistance.

With best regards,

Loïc