AWARE SYSTEMS
TIFF and LibTiff Mail List Archive

Thread

2003.01.30 01:34 "Re: tiffcp problems", by Peter Montgomery
2003.01.30 01:28 "Re: tiffcp problems", by Peter Montgomery
2003.01.29 12:53 "tiffcp problems", by Ray Pixley
2003.01.31 17:54 "Re: tiffcp problems", by Ray Pixley
2003.02.01 00:29 "Re: tiffcp problems", by Peter Montgomery
2003.02.04 03:30 "tiffset.exe instructions (was Re: tiffcp problems)", by Ray Pixley
2003.02.04 08:55 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Andrey Kiselev
2003.02.07 03:04 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Jason Summers
2003.02.04 21:39 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Peter Montgomery
2003.02.07 01:37 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Ray Pixley
2003.02.07 03:55 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Peter Montgomery
2003.02.07 14:11 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Ray Pixley

2003.02.04 21:39 "Re: tiffset.exe instructions (was Re: tiffcp problems)", by Peter Montgomery

Ray,

    I have written the utility you are looking for so desperately. It's

a commandline Delphi app that is passed two parameters:

1 - The name of the TIFF file to modify 2 - The new value for photometric interpretation. The only legal values are 0 (white is the minimum value) or 1 (black is the minimum value).

Since it is a console app, it can be called from a batch file. It returns 1 on success and 0 on failure. If you have any problems, let me know. I have attached it to the message I sent to you directly. I didn't attach it to the general posting since most members probably don't want it. If any do, just let me know.

    Thanks,
    PeterM

Your right on the link address. But I might have found another, and perhaps better way. There's a program in libtiff distribution called

tiffset.exe. Unfortunately, there are no instructions or help files. Executing it with no parameters results in some very terse instructions. I then tried using it to change the photometric interpretation from 1 to 0, but tiffinfo says it was changed to a big number. Consequently, either I need a more complete instruction set or I must conclude it doesn't work. Does anyone have a set of instructions for tiffset.exe?

  Ray

> ----- Original Message -----
> From: Peter Montgomery <pjmonty@csi.com>
> Date: Fri, 31 Jan 2003 16:29:02 -0800
> To: Ray Pixley <rpixley@engineer.com>
> Subject: Re: tiffcp problems
>

Thanks for the links, I'll look at them later tonight. But the one

below returned a 404.

> > > >
> > http://www.planetsourcecode.com/xq/ASP/txtCodeId.9752/lngWId.1/qx/vb/scr
> > > > ipts/ShowCode.htm
> > > > It appears to be source VB only code for playing with Tiff info
> > tags.
> > > > Found it with "vb tiff header".

If you look closely, the link got word wrapped in my post. You'll need to manually cut and paste the first and second parts together to create the proper URL. Also, you can go to Google and try the search I mention and find the link there as well.