2005.11.10 10:44 "[Tiff] Calculate Offset and can't read ASCII", by Thomas Oldenkott

2005.11.10 10:44 "[Tiff] Calculate Offset and can't read ASCII", by Thomas Oldenkott

Hello,

I have two problems.

  1. I need a way to calculate the offset of an image. I want to export it in a csv-File. Is there a tag? How do I make this?
  2. By reading tags in an ASCII format (for example TIFFTAG_DATETIME) to an char array I get crazy values.

Where is the problem?

Example:
char IMAGEDATETIME[50];

TIFFGetField(tif,306,&IMAGEDATETIME); printf("\nIMAGEDATETIME= %s", IMAGEDATETIME); TIFFSetField(out,306,IMAGEDATETIME);

Greetings

TOM