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 2003

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

2003.08.07 01:12 "Custom tags", by Ashley Dreier
2003.08.07 06:11 "Custom tags", by Andrey Kiselev
2003.08.07 06:36 "Custom tags", by Ashley Dreier
2003.08.07 16:40 "Custom tags", by Andrey Kiselev
2003.08.07 23:59 "Custom tags", by Ashley Dreier
2003.08.11 05:09 "Custom tags", by Ashley Dreier
2003.08.12 07:48 "Custom tags", by Andrey Kiselev

2003.08.07 06:11 "Custom tags", by Andrey Kiselev

Ashley,

On Thu, Aug 07, 2003 at 11:12:53AM +1000, Ashley Dreier wrote:
> I've been trying to port some of our old software to use the new
> CUSTOM tag facility (v3.6.0 beta 2 TIFF source). I am able to read out
> the custom tags stored in my TIFF images using TIFFGetField() after
> making a call to TIFFSetTagExtender() to 'configure' my custom tags.
> The problem I'm having at the moment is that I don't seem able to
> store modifed versions of the custom tag data to the file. I open the
> files using the 'r+' mode (i.e. read/write) and grab the directory/tag
> information. The TIFFGetField() function confirms that I'm reading the
> custom data correctly. I then use TIFFSetField() to modify the custom
> tag data and again call TIFFGetField() to confirm that the data has
> changed (at least in the TIFF data structure). The next thing I do is
> a TIFFClose(). This appears to close the file handle, but the file has
> not been updated with the new tag data. I tried doing a
> 'TIFFRewriteDirectory()' before calling TIFFClose() to try to force
> the directory update, but this generates a 'segfault', so I assume
> that I'm not using the CUSTOM tags correctly. I've also tried
> 'TIFFCheckpointDirectory()' with a similar problem. In both cases, the
> resultant TIFF file is corrupted and no longer readable by the TIFF
> library.

Segfault is always an issue for Bugzilla. Could you provide a sample
code, demostrating the problem?

					Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5274898  ICQ# 26871517