TIFFTAG_PREDICTOR - How to use it?

General discussions about GdPicture.NET.
Post Reply
felix
Posts: 20
Joined: Mon Apr 19, 2010 2:54 pm

TIFFTAG_PREDICTOR - How to use it?

Post by felix » Thu Jan 24, 2013 2:34 pm

G'Day everyone!

I tried using the TIFFTAG_PREDICTOR on my image, but it doesn't work the way I thought it would.

At first I use TagSetValueString()-method to set tags proper. E. g. predictor, software, artist, orientation, datetime, etc.
After that I use SaveAsTIFF(image, name, compression).

The image is a GdPicture image from a camera. Has to be saved as TIFF with LZW compression using "Horizontal Differencies" -> Predictor Tag (2).

If I check the tags of my image, I just see the value is set to 1.

1 = No prediction scheme used before coding.
2 = Horizontal differencing.

But it should be 2.

Do I use it the wrong way? Does this need to be specified before?

At the moment I still use GdPicture 6.7.0.9...

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

Re: TIFFTAG_PREDICTOR - How to use it?

Post by Loïc » Thu Jan 24, 2013 6:06 pm

Hello Felix,

We do not yet support custom predictor in TIFF creation. Should feature should be introduced in a future major release. Probably in V 10.

With best regards,

Loïc

Harry
Posts: 45
Joined: Fri Mar 20, 2009 1:21 pm

Re: TIFFTAG_PREDICTOR - How to use it?

Post by Harry » Sat Dec 14, 2013 3:40 pm

Dear Loic,

it seems to be fixed in V10.

Thanks a lot,
Harry

Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest