2005.10.18 17:06 "[Tiff] Change existingTiffTag", by Tobias Gurski

2005.10.18 17:47 "Re: [Tiff] Change existingTiffTag", by

Tobias,

Here is some sample code that updates the embedded profile in an existing tiff file.

tiff = TIFFOpen(SrcFilePath,"r+");
if (NULL != tiff)
{
        hr = E_FAIL;
        if (TIFFSetField(tiff, TIFFTAG_ICCPROFILE, profileSize, profilePtr) &&
                TIFFRewriteDirectory(tiff))
        {
                hr = S_OK;
        }
        TIFFClose(tiff);
}

Lou Sakey
DFIS WW S+SE LOWELL DEVELOPMENT CTR
Lou.Sakey@kodak.com
KNET 27-67676
978-323-7676

"Tobias Gurski" <tg@cromabase.de>
Sent by: tiff-bounces@lists.maptools.org
10/18/2005 01:06 PM

        To:     <tiff@lists.maptools.org>
        cc: 
        Subject:        [Tiff] Change existingTiffTag

I try to change a tiff Tag in a existing tiff file. But I can't find a way to do this with the libtiff. Is there any way or not! I tried tiffsetField but it doesn't work. I searched 2 days without any result! Please help. Thanks

Tobiwankenobi