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
August 2004

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

2004.08.27 05:38 "Copy custom TIFF tags", by Sachin Garg
2004.08.28 13:51 "Re: Copy custom TIFF tags", by Sachin Garg
2004.08.28 13:53 "Re: Copy custom TIFF tags", by Joris Van Damme
2004.08.29 07:52 "Re: Copy custom TIFF tags", by Sachin Garg
2004.08.28 15:21 "Re: Copy custom TIFF tags", by Bob Friesenhahn
2004.08.29 07:47 "Re: Copy custom TIFF tags", by Sachin Garg
2004.08.29 19:15 "Re: Copy custom TIFF tags", by Andrey Kiselev

2004.08.27 05:38 "Copy custom TIFF tags", by Sachin Garg

When using tiffcp (v3.7.0alpha), I noticed that it does not copies
custom tiff tags.

The directory reading/writting routines support the custom tiff tags
(by maintaining an expanding list of such tags).

I was trying to copy custom tags too (using the code copied below) but
it aint working correctly. I guess I am able to read the values fine,
but something wrong happens while trying to write.

===========

uint32 count;
int  i;	
count = (short) TIFFGetTagListCount(in);

for( i = 0; i < count; i++ )
{

   ttag_t  tag = TIFFGetTagListEntry( in, i );
   {
      short value_count;
      int j;
      void *raw_data;

      if( TIFFGetField( in, tag, &value_count, &raw_data ) != 1 )
         continue;
      TIFFSetField(out, tag, value_count, raw_data);
   }
}


-- 
http://www.geocities.com/schngrg 
http://sachingarg.go.to 
schngrg@yahoo.com schngrg@gmail.com 
sachingarg@msn.com sachin.garg@paxcel.net