1997.05.09 18:03 "Re: Edit TIFF headers in UNIX", by Helge Blischke
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
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).
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.