AWARE [SYSTEMS] Imaging expertise for the Delphi developer
AWare Systems, Imaging expertise for the Delphi developer, Home TIFF and LibTiff Mailing List Archive

LibTiff Mailing List

TIFF and LibTiff Mailing List Archive
May 1997

Previous Thread
Next Thread

Previous by Thread
Next by Thread

Previous by Date
Next by Date

Contact

The TIFF Mailing List Homepage
This list is run by Frank Warmerdam
Archive maintained by AWare Systems



Valid HTML 4.01!



Thread

1997.05.08 15:43 "Edit TIFF headers in UNIX", by Lee C Brink
1997.05.09 18:03 "Re: Edit TIFF headers in UNIX", by Helge Blischke

1997.05.09 18:03 "Re: Edit TIFF headers in UNIX", by Helge Blischke

Lee C. Brink wrote:
> 
> Coud someone point me in the general direction to a utility or
> script that would allow me to edit the header of a TIFF file?
> Specifically I need to change the field:
> 
> Orientation: row 0 rhs, col 0 top
> 
>  to
> 
> Orientation: row 0 rhs, col 0 bottom
> 
> I see ways to show the header in the tiff library utilities but no
> way to edit it (And hence create a script to process the thousands
> of files I have to do this to).
> 
> Thanks in advance.
> 
>         Lee
> 
> --
> Lee C. Brink                                    lcb5@cornell.edu
> 503 Olin Library                                Systems Programmer
> Cornell University                              Work: 607-255-4874
> Ithaca, NY 14853                                Home: 607-753-3279
> 
> God: "Sum id quod sum."
> Descartes: "Cogito ergo sum."
> Popeye: "Sum id quod sum et id totum est quod sum."

Dear Lee,
There's no use to simply edit the TIFF header, as this header describes
how the image actually is made up. Or is your intention do cause the
images displayed upside down? If not, you'd habe to hack a little nice 
utility, using libtiff, of course, to invert the sequence of 
columns (nor rows, if I've understood what you really mean), which
would mean to invert the sequence of pixels, roughly speaking, for
each row. You could probably use tiffcp as a platform to start from.
Yes, I know, it IS a little bit more than sriteing a script,
but the success surely will make you happy.

Helge