Creating Multipage TIFF using JPEG Compression

Discussions about image processing and document imaging.
User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Thu Nov 05, 2009 1:58 am

I am using gdPicture Ultimate v 6.4.9 in VB.NET with Visual Studio 2008
to create multipage TIFF files from various images and other TIFF files.

When I try to specify JPEG or OJPEG for TIFF Compression with JPEG Quality,
the filesize seems correct but you cannot see any pages within if you open it.

The other compression types seem to work, but sometimes the filesize will be the same
no matter which compression type I choose. Sometimes however it works as expected.

Code: Select all

I start by adding the first page with TiffCreateMultiPageFromGdPictureImage
Then I save it with TiffSaveMultiPageToFile(ImageID, FilePath,TiffCompression, JpegQuality )

Then I add each additional page with TiffAppendPageFromGdPictureImage

Finally after all the additional pages are appended, 
I save again with TiffSaveMultiPageToFile(ImageID, FilePath,TiffCompression, JpegQuality )
Is JPEG TIFF Compression implemented with these methods?
In the documentation the other multipage methods noted that it wasn't implemented yet.

If my methodology looks correct, could you provide sample VB.NET code
that opens 3 images and adds them to a multipage TIFF
with JPEG TIFF Compression and JPEG Quality specified using the methods above?

Thanks for your help!
~ Don ~

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

Re: Creating Multipage TIFF using JPEG Compression

Post by Loïc » Thu Nov 05, 2009 12:53 pm

Hi Don,

The JPEG compression is not current available for the TiffSaveMultiPageToFile() method.
But good news: It will be into the next minor release (will come between 1 and 3 days).

With best regards,

Loïc

User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Re: Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Thu Nov 05, 2009 3:55 pm

That's great! I was beating myself up trying to figure it out for a few days. I figured you wouldn't have JPEG Quality as a parameter if you didn't allow JPEG compression. The next release should have some great fixes.

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

Re: Creating Multipage TIFF using JPEG Compression

Post by Loïc » Thu Nov 05, 2009 4:29 pm

The next release should have some great fixes.
Yes, you are right :wink:

I am out of patience to release it, we will bring some interesting features & improvements.

Loïc

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: Creating Multipage TIFF using JPEG Compression

Post by edlemus » Fri Nov 20, 2009 10:12 pm

Hi,

Has this issue been solved?
I just tried to use TiffSaveMultiPageToFile but JPEG Compresion is not even in the TifCompression enumeration.

User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Re: Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Fri Nov 20, 2009 11:48 pm

If you cannot see the enumeration, then you may have a different issue.

Image

I haven't noticed a new release since this topic was posted and a fix was made.
There are a few other issues I posted that have been resolved too.
I'm anxiously awaiting a new release!

edlemus
Posts: 26
Joined: Sat Jan 17, 2009 11:10 am

Re: Creating Multipage TIFF using JPEG Compression

Post by edlemus » Sat Nov 21, 2009 1:11 am

You're right there isn't a new release since the initial post day. But I also made a mistake, you are using the .Net edition, I'm using the OCX one; the search brought me here, as this is an issue in the OCX edition too.

User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Re: Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Tue Dec 01, 2009 6:55 am

Bad news... This is still an issue with the new version GdPicture.NET 6.5.0.
If JPG or OJPG compression is used to create multipage TIFs, no pages are displayed when you open the TIF.
Other compression types like PACKBITS work fine.

~ Don ~

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

Re: Creating Multipage TIFF using JPEG Compression

Post by Loïc » Tue Dec 01, 2009 11:04 am

Hi,
If JPG or OJPG compression is used to create multipage TIFs, no pages are displayed when you open the TIF.
I suspect to use a viewer which does not support this compression scheme in TIFF. Try the Gdviewer instead, it will work !

Kind regards,

Loïc

User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Re: Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Tue Dec 01, 2009 8:57 pm

I'm using the Windows Picture and Fax Viewer, which is what most people who view TIFs will use since it comes with Windows. Is JPEG compression in TIFFs some thing that is not standard?

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

Re: Creating Multipage TIFF using JPEG Compression

Post by Loïc » Wed Dec 02, 2009 11:21 am

Don,

Unfortunately, Windows Picture Viewer doesn't support JPEG in TIFF. You can try another Viewer such as XnView or GdViewer in your own app to get it working.

Kind regards,

Loïc

User avatar
dreynolds
Posts: 43
Joined: Thu Oct 29, 2009 4:07 pm
Location: King of Prussia, PA, USA
Contact:

Re: Creating Multipage TIFF using JPEG Compression

Post by dreynolds » Wed Dec 02, 2009 3:43 pm

Thanks for the information.

SSriram
Posts: 23
Joined: Thu Jan 03, 2008 5:51 pm
Location: Chennai India

Re: Creating Multipage TIFF using JPEG Compression

Post by SSriram » Tue Mar 09, 2010 10:23 pm

We are using the ActiveX edition of the SDK (5.12.8) and no luck in opening/reading tiffs compressed with the old JPEG format. I am not sure how much dependence is there on using GDIPLUS.DLL. Unfortunately, Microsoft has almost effectively killed JPEG support inside this and if there is much dependence on said DLL, I think users of GD PICTURE PRO will have no luck in opening older formats.

I fully agree that supporting an older format may not be viable - however, as technologists, we cannot always determine the choices made by Business users earlier, esp. when they made earlier decisions to use other software such as Kodak or Kofax imaging. One way I could think of is to support MDI formats - it is trivial to view an image using the Microft Document Imaging API in VB (maybe some way of transferring data back and forth?). The other way I could think of would be if we can get rid of the dependence on GDIPLUS.dll and use some other library (Libtiff perhaps?)

It would simply be great if we (who try to evangelize the use of GDPICTURE PRO) can go back and tell our business sponsors for the extended support for all formats.

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

Re: Creating Multipage TIFF using JPEG Compression

Post by Loïc » Wed Mar 10, 2010 9:51 am

Hi Siram,

I think you are making some confusion (or I don't understand you):

- GdPicture (ActiveX & .NET editions) provide full support for old (and new) JPEG compression scheme in TIFF.
- Microsoft does not

If you are unable to open a specific tiff image in GdPicture, please send it to esupport (at) gdpicture (dot) com for investigation.

With best regards,

Loïc

SSriram
Posts: 23
Joined: Thu Jan 03, 2008 5:51 pm
Location: Chennai India

Re: Creating Multipage TIFF using JPEG Compression

Post by SSriram » Wed Mar 10, 2010 2:01 pm

I am attaching the file here for your reference Loic.
Attachments
ADMP-836NT8.tif
Test image
Last edited by SSriram on Mon Mar 15, 2010 9:11 am, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests