Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx010.isp.belgacom.be (inmx010.isp.belgacom.be [195.238.2.73])
        by mailst035.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id iB7MHt0c005091
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Dec 2004 23:17:55 +0100
        (envelope-from <tiff-bounces@remotesensing.org>)
Received: from xserve.flids.com (adsl-065-083-169-202.sip.mco.bellsouth.net [65.83.169.202])
        by inmx010.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id iB7MHkwN027487
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Dec 2004 23:17:49 +0100
        (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 EC7714E26B6; Tue,  7 Dec 2004 17:17:05 -0500 (EST)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from psmtp.com (exprod6ob6.obsmtp.com [64.18.1.216])
	by xserve.flids.com (Postfix) with SMTP id D1E734E266C
	for <tiff@remotesensing.org>; Tue,  7 Dec 2004 17:17:00 -0500 (EST)
Received: from source ([193.95.148.142]) by exprod6ob6.obsmtp.com
	([64.18.5.12]) with SMTP; Tue, 07 Dec 2004 14:14:53 PST
Received: from inner-relay-3.corp.adobe.com (inner-relay-3.sea.adobe.com
	[153.32.251.51])
	by outbound-smtp-2.corp.adobe.com (8.12.10/8.12.10) with ESMTP id
	iB7MMvTG028085
	for <tiff@remotesensing.org>; Tue, 7 Dec 2004 14:22:58 -0800 (PST)
Received: from calsj-dev (calsj-dev.corp.adobe.com [153.32.1.193])
	by inner-relay-3.corp.adobe.com (8.12.9/8.12.9) with ESMTP id
	iB7MGv0v024154
	for <tiff@remotesensing.org>; Tue, 7 Dec 2004 14:16:57 -0800 (PST)
Received: from [153.32.48.223] (noname.corp.adobe.com [153.32.48.223])
	by mailsj-v1.corp.adobe.com
	(iPlanet Messaging Server 5.2 HotFix 1.21 (built Sep  8 2003))
	with ESMTP id <0I8D00G3HHW9P7@mailsj-v1.corp.adobe.com> for
	tiff@remotesensing.org; Tue, 07 Dec 2004 14:16:57 -0800 (PST)
Date: Tue, 07 Dec 2004 14:16:39 -0800
From: Chris Cox <ccox@adobe.com>
Subject: Re: [Tiff] Having problems adding IPTC to a TIFF
In-reply-to: <003701c4dc9d$b2c52fe0$5eb1f551@dfgrrxsknr4e>
X-Sender: ccox@mailsj.corp.adobe.com
To: TIFF Mailing List <tiff@remotesensing.org>
Message-id: <p05210611bddbdaef5f19@[153.32.48.223]>
MIME-version: 1.0
Content-type: text/plain; charset=us-ascii; format=flowed
Content-transfer-encoding: 7BIT
References: <BDDBA1B3.2C93C%eric.vergnaud@jlynx.com>
	<003701c4dc9d$b2c52fe0$5eb1f551@dfgrrxsknr4e>
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: 68bdb9f6506f1cad496b2f93975d8341

At 9:45 PM +0100 12/7/04, Joris wrote:
>  > Well maybe the first thing to do would be to see what Photoshop IS doing.
>>  Since Adobe is in charge of the TIFF specs, if they're writing IPTC as a
>>  LONG array, then THAT IS the spec, even if it's conceptually incorrect. If
>>  they're writing UNDEFINED of whatever, then libtiff should definitely
>>  follow.
>
>Wrong. If Adobe breaks the TIFF spec, that is a different thing from Adobe
>changing the TIFF spec.

It isn't breaking the spec at all.
It isn't 100% correct - but the size of the datablock is still 
correct and it is still readable.
IF the contents of the block were defined in the TIFF spec. then they 
would have to be byte swapped according to the TIFF spec.
This is similar to the ICC profile block  (and others)- it is handled 
independently of the TIFF byte order.

You cannot blindly byte swap blocks based on their stated size, you 
have to swap based on knowledge of their contents.

Chris
_______________________________________________
Tiff mailing list
Tiff@remotesensing.org
http://xserve.flids.com/mailman/listinfo/tiff
