B&W tiff with jpg compression

General discussions about GdPicture.NET.
Post Reply
charuvas1
Posts: 38
Joined: Tue Dec 02, 2008 1:49 pm

B&W tiff with jpg compression

Post by charuvas1 » Sat Jan 30, 2010 8:15 am

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

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: B&W tiff with jpg compression

Post by Loïc » Sat Jan 30, 2010 10:29 am

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

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests