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
December 2000

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

2000.12.22 11:20 "Libtiff's tiffcp and IFD's a newbie in trouble..", by Bard Kregnes
2000.12.22 15:00 "Re: Libtiff's tiffcp and IFD's a newbie in trouble..", by Frank Warmerdam
2000.12.22 15:51 "Re: Libtiff's tiffcp and IFD's a newbie in trouble..", by Bard Kregnes

2000.12.22 15:00 "Re: Libtiff's tiffcp and IFD's a newbie in trouble..", by Frank Warmerdam

Bard, 
 
It's a hack, but you can accomplish this by adding the following lines
just before the "cf = pickCopyFunc..." stuff in tiffcp.
  
        TIFFWriteCheck( out, TIFFIsTiled(out), "..." );
        TIFFWriteDirectory( out );
        TIFFSetDirectory( out, 0 );
 
This forces the directory to be written and reread before any data has
been written, so it appears at offset 8.

Best regards,

---------------------------------------+--------------------------------------
I set the clouds in motion - turn up   | Frank Warmerdam, warmerda@home.com
light and sound - activate the windows | http://members.home.com/warmerda
and watch the world go round - Rush    | Geospatial Programmer for Rent

Editor's note: This mail was not originally archived, and has been reconstructed from quotes.