JPEG Compressed TIFFs

Feature Requests for GdPicture.NET.
Post Reply
lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

JPEG Compressed TIFFs

Post by lokelo » Fri Mar 28, 2008 11:03 pm

Would it be possible to include the option to compress TIF files with JPEG compression?
other software we currently use does not support LZW compression.

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

Re: JPEG Compressed TIFFs

Post by Loïc » Thu Apr 03, 2008 2:05 pm

OK!

I will add jpeg compression for TIFF files within GdPicture V 5.2

Best regards,

Loïc

Yury
Posts: 1
Joined: Wed Apr 09, 2008 1:25 pm

Re: JPEG Compressed TIFFs

Post by Yury » Wed Apr 09, 2008 2:17 pm

Hi, Loic.
When v5.2 with JPEG compression for TIFF is expected?

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

Re: JPEG Compressed TIFFs

Post by Loïc » Fri Apr 11, 2008 12:06 pm

Hi,

Within two weeks.

Best regards,

Loïc

lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

Re: JPEG Compressed TIFFs

Post by lokelo » Fri Apr 25, 2008 10:07 pm

Thank you for the addition to being able to save the JPEG compressed TIFFs, but I have a couple more requests.
Can you add the ability to save them and customize the JPEG compression factor like a standard call to SaveAsJPEG?
Also I have these files that are JPEG compressed TIFFs generated by Kofax Ascent Capture. I recieve a response of UnknownImageFormat {13} from a call to the GetStat function after attempting open one of these images using the CreateImageFromFile Function.

Please let me know if I can be of any help.
Thanks again for all of your help.

Roger Shields
Attachments
5.tif
5.tif (82.24 KiB) Viewed 9211 times
4.tif
4.tif (28.54 KiB) Viewed 9210 times
2.tif
2.tif (69.93 KiB) Viewed 9210 times

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

Re: JPEG Compressed TIFFs

Post by Loïc » Mon Apr 28, 2008 11:58 am

Hi Roger,

I am unabled to donwload your attached tiff images. Could you upload them again ?

The jpeg compression factor for the tiff format is fixed to 75 by LibTiff. However, I added a feature to be able to change this value into our wish list.

Best regards,

Loïc Carrère

lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

Re: JPEG Compressed TIFFs

Post by lokelo » Tue Apr 29, 2008 6:54 pm

Here they are again in a zip file
Attachments
JpegTiffs.zip
(276.61 KiB) Downloaded 526 times

lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

Re: JPEG Compressed TIFFs

Post by lokelo » Mon May 05, 2008 9:15 pm

Any Luck with these Loïc?

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

Re: JPEG Compressed TIFFs

Post by Loïc » Tue May 06, 2008 3:57 pm

Hi Lokelo,

I examined your image and it is an JPEG-in-TIFF image that use an old jpeg compression format.

This compression format is called 6.0 JPEG encoded TIFF or OJPEG.

This format is no longer supported by the TIFF specifications.

I've already tried to integrate this compression into GdPicture with no success.

I suggest you to use valid jpeg compression format for tiff file or simply use jpeg file when you need to compress data as jpeg.


Best regards,

Loïc Carrère

lokelo
Posts: 17
Joined: Fri Mar 28, 2008 9:00 pm

Re: JPEG Compressed TIFFs

Post by lokelo » Tue May 06, 2008 8:38 pm

Well, that sucks. I agree though that the images should be compressed using a currently supported format. However, we are locked into Kofax Capture, and this is the image format that they use.
Is there any way that a more specific error could be returned from getStat, or even have a 0 value return from CreateImageFromFile function to help me catch this error?

I'm thinking of possibly either using another image lib to open and resave the image with the current tif standard, or just open and create another image in a memory only format to pass to GD Picture.
Would a DIB, GdiPlusImage, or HBitmap image be a better image type to use if i'm able to choose?
thanks again for your quick response and support on these issues.

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

Re: JPEG Compressed TIFFs

Post by Loïc » Wed May 07, 2008 4:38 pm

I think you will be happy :D

Finally I succeeded to load old jpeg compression in GdPicture.

I make other hard tests & I publish a fixed release ASAP.

Best regards,

Loïc

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest