Return-Path: <tiff-bounces@remotesensing.org>
Received: from inmx009.isp.belgacom.be (inmx009.isp.belgacom.be [195.238.3.146])
        by mailst006.isp.belgacom.be (8.12.11/8.12.11/Skynet-MAILSTORE-2.14) with ESMTP id i7GKbWpY023736
        for <joris.at.lebbeke@skynet.be>; Mon, 16 Aug 2004 22:37:32 +0200
        (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 inmx009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id i7GKbJDZ017369
        for <joris.at.lebbeke@skynet.be>; Mon, 16 Aug 2004 22:37:20 +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 C1EF31E5321; Mon, 16 Aug 2004 16:37:04 -0400 (EDT)
X-Original-To: tiff@remotesensing.org
Delivered-To: tiff@remotesensing.org
Received: from smtp1.kodak.com (smtp1.kodak.com [192.232.121.200])
	by xserve.flids.com (Postfix) with ESMTP id 6A84F1E52FB
	for <tiff@remotesensing.org>; Mon, 16 Aug 2004 16:37:02 -0400 (EDT)
Received: from mailgate-w.kodak.com (mailgate-w.kodak.com [192.232.121.210])
	by smtp1.kodak.com (8.11.3/8.11.1) with SMTP id i7GKb1R28306;
	Mon, 16 Aug 2004 16:37:01 -0400 (EDT)
Received: from nodnsquery(150.220.10.55) by mailgate-w.kodak.com via csmap 
	id f78ba864_efc3_11d8_8c3a_003048245d58_21901;
	Mon, 16 Aug 2004 16:36:35 -0400 (EDT)
Received: from kp-kpro-wjims2.Kodak.com ([150.102.110.180])
	by corpmail.kodak.com (Post.Office MTA v3.5.3 release 223
	ID# 592-58678U700L2S100V35) with ESMTP id com;
	Mon, 16 Aug 2004 16:36:35 -0400
Message-Id: <5.1.0.14.0.20040816162938.02320df8@corpmail.kodak.com>
X-Sender: 227146@corpmail.kodak.com
X-Mailer: QUALCOMM Windows Eudora Version 5.1
Date: Mon, 16 Aug 2004 16:36:34 -0400
To: tiff@remotesensing.org
From: Jim Schueckler <James.Schueckler@Kodak.com>
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"; format=flowed
Cc: 
Subject: [Tiff] ICC profile in tiff file on windows
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: 81bb1b48d87a83d293a397c9ffd0e3b2



At 3:55 PM -0400 8/16/04, Alexander Cohen wrote:
>Ok.
>
>But im still getting some weird values out of it. Im just reading the tag 
>data, and writting out directly to disk. ON mac, everything is fine. On 
>windows, some tags are garbage, and this makes ICM crash when trying to 
>read that profile.


Alexander,

Your code that parses TIFF tags and TIFF data types should not be
messing with the ICC profile data.  Code that works with ICC profiles
that run on a Windows platform knows that all the ICC profile
is big endian ( like an "MM" TIFF file ) and should do the proper
byte swapping for shorts and longs inside the ICC profile code.

BUT: if you try to read a short or long from an ICC profile with
Windows code, the bytes will be in the wrong order.

The moral of the story: you might be trying to do something that
a Color Management System library should do for you.


Jim Schueckler  (585)726-6369       Professional Digital Cameras 1/205/KP
kmx-236-6369 fax(585)726-6669       Eastman Kodak Company MS 03010
mailto:James.Schueckler@kodak.com   2400 Mt Read Boulevard
http://www.kodak.com/go/kpdp        Rochester NY 14650-3010
"Oh! I have slipped the surly bonds of earth..." J.G. McGee

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