"tiff SDK/Activex" jpeg compression problem!!!!!!!!!

Document Imaging SDK,
Image SDK,
TIFF SDK,
Annotation SDK,
Cover Page Generator

Moderator: Technical Support Team

"tiff SDK/Activex" jpeg compression problem!!!!!!!!!

Postby Nunzio » Tue Jun 22, 2004 8:52 am

I'm using the "tiff SDK/Activex" and i have this problem: i want to scan an image and save it in the tiff format and jpeg compression but i can't be able to do this. The code that i have used is this:

Sub TwainCtrl_Done(hDibOutput,FileOutput)
dim retval
BiDisp.hDib=hDibOutput
retval=TiffObj.SaveDIBInTiffFormat("c:\pippo.tif",hDibOutput,imgcmNoComp,True)
alert(retval)

end Sub

so i view a user interface where i can set the compression type for the tiff file, when i set "no compression" or "differential LZW" it save the image and retval is equal to TRUE but if i set "jpeg compression" it don't save the image and retval is FALSE; why? I have scanned a coloured image with a resolution of 24 bit.

Another question: How can i set the "Quality jpeg" and "Resolution jpeg" properties for the jpeg compression in the tiff format? With the "Kodak Imaging" i can set this properties.

Thanks, Nunzio
Nunzio
 
Posts: 6
Joined: Tue Jun 22, 2004 8:24 am

Postby TechnicalSupportTeam » Tue Jun 22, 2004 11:37 am

Can you reproduce this issue using any of the sample applications? If not, please check the source code of the sample, to see what are you doing differently.

The resolution of the JPEG image will be the resolution of the DIB. The quality is available only when you save the DIB into a JPEG file (Image SDK), it is not available when you save JPEG compressed TIFF files.
TechnicalSupportTeam
 
Posts: 944
Joined: Sat Mar 20, 2004 11:50 am

Problem with source code but not with application sample

Postby Nunzio » Tue Jun 22, 2004 12:13 pm

if i use "Sample Source Codes->OCX->Visual Basic->TiffVbSample.vbp" i can't save a coloured image in tiff format with jpeg compression but if you use "Sample Applications->OCX->Visual Basic->Tiff Sample" there is no problems.

I repeat the step of my example:
1)scan an coloured image
2)save the image in tiff format with the jpeg compression
Nunzio
 
Posts: 6
Joined: Tue Jun 22, 2004 8:24 am

Postby TechnicalSupportTeam » Tue Jun 22, 2004 5:26 pm

This issue is most likely occuring because the newly compiled exe cannot locate the BIJPEG.DLL. The Visual Basic environemnt is probably changing the working directory and that is why the application cannot find the BIJPEG.DLL. The solution is to add the directory where the DLLs are located to the path.
TechnicalSupportTeam
 
Posts: 944
Joined: Sat Mar 20, 2004 11:50 am

Vbscript

Postby Nunzio » Wed Jun 23, 2004 2:56 am

In vbscript, how can i use the BiJpeg.dll?
Nunzio
 
Posts: 6
Joined: Tue Jun 22, 2004 8:24 am

Postby TechnicalSupportTeam » Wed Jun 23, 2004 2:43 pm

You do not need to use the DLL. The BIJPEG.OCX relies on the BIJPEG.DLL. You can still use the BIJPEG.OCX, however you must make sure that the BIJPEG.DLL is in the same directory as the OCX control.
TechnicalSupportTeam
 
Posts: 944
Joined: Sat Mar 20, 2004 11:50 am


Return to Imaging Toolkits



Who is online

Users browsing this forum: Google [Bot] and 0 guests

cron