Return-Path: <tiff-bounces@remotesensing.org>
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j56IoZem028275
        for <joris.at.lebbeke@skynet.be>; Mon, 6 Jun 2005 20:50:37 +0200
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from adsl-065-083-169-202.sip.mco.bellsouth.net (localhost [127.0.0.1])
	by xserve.flids.com (Postfix) with ESMTP
	id 7153925EB253; Mon,  6 Jun 2005 14:50:17 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from cgp.pu.ru (cgp.pu.ru [195.70.196.209])
	by xserve.flids.com (Postfix) with ESMTP id 97E9025EB23F
	for <tiff@remotesensing.org>; Mon,  6 Jun 2005 14:50:15 -0400 (EDT)
Received: from wg.pu.ru ([193.124.85.219] verified)
	by cgp.pu.ru (CommuniGate Pro SMTP 4.2.8)
	with ESMTP id 68812113 for tiff@remotesensing.org;
	Mon, 06 Jun 2005 22:50:10 +0400
Received: (from uucp@localhost)
	by wg.pu.ru (8.9.1a/8.9.1) with UUCP id SAA25899
	for tiff@remotesensing.org; Mon, 6 Jun 2005 18:50:10 GMT
Received: from ak4719.spb.edu (localhost [127.0.0.1])
	by ak4719.spb.edu (8.13.3/8.13.3/Debian-6) with ESMTP id j56IXrnn008975
	for <tiff@remotesensing.org>; Mon, 6 Jun 2005 22:33:53 +0400
Received: (from dron@localhost)
	by ak4719.spb.edu (8.13.3/8.13.3/Submit) id j56IXofD008964
	for tiff@remotesensing.org; Mon, 6 Jun 2005 22:33:50 +0400
From: Andrey Kiselev <dron@ak4719.spb.edu>
Date: Mon, 6 Jun 2005 22:33:50 +0400
To: tiff@remotesensing.org
Subject: Re: [Tiff] tifflib read/write question
Message-ID: <20050606183349.GA6496@ak4719.spb.edu>
Mail-Followup-To: tiff@remotesensing.org
References: <058a85f145f8265caadc3e6460fbd6e1@quart-edv.de>
	<20050524192518.GA15967@ak4719.spb.edu>
	<3ad6154b8409a00eac1bea3fdb99e69f@quart-edv.de>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <3ad6154b8409a00eac1bea3fdb99e69f@quart-edv.de>
X-GnuPG-Key: http://www.srces.spb.org/dron/export.home.key
X-Face: "t+se9s~+y~[XUH]L|pmeO3Pt/Q@DNv**S, d@_1-C=}/,
	c%<3Qp]eu!ok<"2lYJm$!9qVcg F?7o*L; |$`6|Q|>Rt-cU%2_y@6tQ|`!Li}TsvZvEKx;
	>fuY=fc(=sX^`7Wmw8%SsR`AvM$a; 0U/eN\ P?B\FTyqD, 0np$U2!*'z_4D,
	VPlFf?bN0&zYf"zF0s!7Tl7?$we)xD0@lL>[h|8bhys0i.g|zLnu@C
	Ti@d]i=[!:j1CB\5/TF[m]`lfHfaqSN[0qn@T3zeosV/[LAss{@p_?],x*j8P_9t[}uHD^X-;
	j~\M! gyTly;fj`}&Y~i{<#bN.#QmkE}#T`dxP.I1\.)_MEN{@#W
User-Agent: Mutt/1.5.6+20040907i
X-Virus-Scanned: ClamAV version 0.84, clamav-milter version 0.84e on ak4719
X-Virus-Status: Clean
X-BeenThere: tiff@remotesensing.org
X-Mailman-Version: 2.1.2
Precedence: list
List-Id: TIFF and libtiff discussion  <tiff.remotesensing.org>
List-Unsubscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=unsubscribe>
List-Archive: <http://xserve.flids.com/pipermail/tiff>
List-Post: <mailto:tiff@remotesensing.org>
List-Help: <mailto:tiff-request@remotesensing.org?subject=help>
List-Subscribe: <http://xserve.flids.com/mailman/listinfo/tiff>,
	<mailto:tiff-request@remotesensing.org?subject=subscribe>
Sender: tiff-bounces@remotesensing.org
Errors-To: tiff-bounces@remotesensing.org
X-UIDL: 000000000023ceae.0000034b
X-MSP-STORE: Mon, 06 Jun 2005 20:50:47 +0200
Status:   

On Mon, Jun 06, 2005 at 03:25:18PM +0200, Quart-EDV wrote:
> >>I want to write a IPTC Tag into an existing tiff file. Do I need to
> >>load the image first and then write a new image, or is there a way
> >>to read/write a tiff like this: open tiff, change tag, close tiff
> >>(-> write/excange tag).
> >Yes, you can do it that way. But every time after tag update you will
> >need to rewrite the whole directory, so the size of your TIFF file
> >will be increased.
> >
> >The tiffset utility from the libtiff package does exactly what you
> >need, so you can take it as a sample code.
> 
> as I see it is only possible to change the offset of a tag and write
> the changed directory with tiffset utility. But if this tag is not in
> a tiff this way is not the right one.

No, you can also add a new tag using this technique.

Regards,
Andrey

-- 
Andrey V. Kiselev
Home phone:  +7 812 5970603  ICQ# 26871517
_______________________________________________
Tiff mailing list: Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
