Can not save a tiff file with JPEG compression

Questions, comments and suggestions concerning VintaSoft Twain .NET SDK.

Moderator: Alex

Post Reply
martimanrique
Posts: 5
Joined: Fri Sep 21, 2012 11:23 am

Can not save a tiff file with JPEG compression

Post by martimanrique »

Hello,

I have tried to save an grayscale 8-bit image to a TIFF file using JPEG compression but the result file is in color and has 24-bit with no compression. This is my code in the ImageAcquired event:

_device.AcquiredImages.TiffCompression = TiffCompression.JPEG
_device.AcquiredImages.TiffMultiPage = true;
_device.AcquiredImages.Last.Save(@"c:\test.tiff");

Can anyone help me please?

Regards.
Martí.

Alex
Site Admin
Posts: 1802
Joined: Thu Jul 10, 2008 2:21 pm

Re: Can not save a tiff file with JPEG compression

Post by Alex »

Hello Marti,

Your code is correct.

Current version of SDK creates TIFF files with JPEG compression in RGB color space. We will add ability to create TIFF files with JPEG compression in Grayscale color space in 1 week.

Best regards, Alexander

martimanrique
Posts: 5
Joined: Fri Sep 21, 2012 11:23 am

Re: Can not save a tiff file with JPEG compression

Post by martimanrique »

Thanks Alex. We are currently evaluating your library so we will wait for the new release.

Regards.
Martí.

martimanrique
Posts: 5
Joined: Fri Sep 21, 2012 11:23 am

Re: Can not save a tiff file with JPEG compression

Post by martimanrique »

Hello again Alex,

We will buy the license as soon as this functionality is published. Can you drop me an email when you publish it please?

Thanks.
Marti.

Alex
Site Admin
Posts: 1802
Joined: Thu Jul 10, 2008 2:21 pm

Re: Can not save a tiff file with JPEG compression

Post by Alex »

Hello Marti,

New version with necessary functionality will be available on Monday.

Best regards, Alexander

Alex
Site Admin
Posts: 1802
Joined: Thu Jul 10, 2008 2:21 pm

Re: Can not save a tiff file with JPEG compression

Post by Alex »

Hello Marti,

Version 8.2.3.1 of VintaSoftTwain.NET SDK is released today, in this version added an ability to create TIFF files with JPEG compression in Grayscale color space.

Best regards, Alexander

Post Reply