Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.b-one.net (mx-j.one.com [91.198.169.57])
	by mail9.b-one.net (Postfix) with ESMTP id 5ADDB400122
	for <info@awaresystems.be>; Thu, 16 Apr 2009 15:47:25 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-j.b-one.net (Postfix) with ESMTP id 4FEAD4AFC4B
	for <info@awaresystems.be>; Thu, 16 Apr 2009 15:47:24 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 124611D191B27;
	Thu, 16 Apr 2009 08:46:32 -0500 (EST)
Received: from sasl.smtp.pobox.com (a-sasl-quonix.sasl.smtp.pobox.com
	[208.72.237.25])
	by lists.maptools.org (Postfix) with ESMTP id 37CD01D18F560
	for <tiff@lists.maptools.org>; Thu, 16 Apr 2009 08:39:39 -0500 (EST)
Received: from localhost.localdomain (unknown [127.0.0.1])
	by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTP id 35822F7B2; 
	Thu, 16 Apr 2009 09:39:34 -0400 (EDT)
Received: from [192.168.2.7] (unknown [67.47.28.121]) (using TLSv1 with
	cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate
	requested)
	by a-sasl-quonix.sasl.smtp.pobox.com (Postfix) with ESMTPSA id
	3587DF7B1; Thu, 16 Apr 2009 09:39:27 -0400 (EDT)
Message-ID: <49E73503.1060706@pobox.com>
Date: Thu, 16 Apr 2009 09:39:15 -0400
From: Frank Warmerdam <warmerdam@pobox.com>
User-Agent: Thunderbird 2.0.0.6 (X11/20071022)
MIME-Version: 1.0
To: Munmun <munmun.gangwal@wipro.com>
References: <23060096.post@talk.nabble.com>
In-Reply-To: <23060096.post@talk.nabble.com>
X-Pobox-Relay-ID: 056682E4-2A8C-11DE-BC70-DC76898A30C1-06493634!a-sasl-quonix.pobox.com
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Re garding TIFFRewriteDirectory
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
Precedence: list
List-Id: TIFF and libtiff discussion <tiff.lists.maptools.org>
List-Unsubscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=unsubscribe>
List-Archive: <http://lists.maptools.org/mailman/private/tiff>
List-Post: <mailto:tiff@lists.maptools.org>
List-Help: <mailto:tiff-request@lists.maptools.org?subject=help>
List-Subscribe: <http://lists.maptools.org/mailman/listinfo/tiff>,
	<mailto:tiff-request@lists.maptools.org?subject=subscribe>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Munmun wrote:
> Hello,
> 
> I am using Libtiff version 4.0.0 in my application. I have a requirement of
> updating frames and custom tags for a tiff image. I update a frame using
> TIFFRewriteDirectory function. If i dont use this function the image gets
> corrupted. For a 16 bit tiff image, this approach has no problem. For 8 bit
> tiff image, if i update a frame and call TIFFRewriteDirectory, the frame
> does not get updated. If i do not call TIFFRewriteDirectory, the frame gets
> updated but the file gets corrupted. 
> I am not sure whether the approach which i have taken is correct. Any
> suggestions are welcome.

Munmun,

It would be helpful if you could provide a minimal code example and an input
file that demonstrate the effects you are encountering.  I might well need
to run things in the debugger to analyse the problem.

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

_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
