Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas015.isp.belgacom.be (localhost [127.0.0.1])
        by inav025.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k01H7ZjC030442
        for <joris.at.lebbeke@skynet.be>; Sun, 1 Jan 2006 18:07:35 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx020.isp.belgacom.be (inmx020.isp.belgacom.be [195.238.5.139])
        by inas015.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k01H7Ttw013704
        for <joris.at.lebbeke@skynet.be>; Sun, 1 Jan 2006 18:07:30 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx020.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k01H7Pqs031881
        for <joris.at.lebbeke@skynet.be>; Sun, 1 Jan 2006 18:07:25 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (duke.maptools.org [127.0.0.1])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k01GvW5C009339;
	Sun, 1 Jan 2006 11:58:47 -0500
Received: from scooby.simplesystems.org (scooby.simplesystems.org
	[65.66.246.67])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k01GvTqs009335
	for <tiff@lists.maptools.org>; Sun, 1 Jan 2006 11:57:30 -0500
Received: from blade.simplesystems.org (blade.simplesystems.org [65.66.246.74])
	by scooby.simplesystems.org (8.12.10+Sun/8.12.10) with ESMTP id
	k01GvSus001773
	for <tiff@lists.maptools.org>; Sun, 1 Jan 2006 10:57:28 -0600 (CST)
Date: Sun, 1 Jan 2006 10:57:28 -0600 (CST)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Tiff List <tiff@lists.maptools.org>
Message-ID: <Pine.SOC.4.60.0601011041320.4804@blade.simplesystems.org>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Subject: [Tiff] Outrageous profile tag sizes reported by libtiff 3.8.0
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
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>
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org
X-UIDL: 000000000023ceae.00001099
X-MSP-STORE: Sun, 01 Jan 2006 18:07:40 +0100
Status:   

Using libtiff 3.8.0, I noticed that GraphicsMagick was extremely slow 
(on a big-endian system) at loading some files written by Photoshop 
CS2.  The TIFF files were downloaded from 
"http://www.babelcolor.com/main_level/ColorChecker.htm#How_about_data".

These files contain Photoshop and XMP profiles.

When the size (length is type 'uint32') is obtained via

   TIFFGetField(tiff,TIFFTAG_PHOTOSHOP,&length,&text)

     or

   TIFFGetField(tiff,TIFFTAG_XMLPACKET,&length,&text)

The length values reported are huge sizes like 387738624 or 979463168.

Somehow tiffinfo on the same system gets the length correct.  For 
example, it reports that the Photoshop data is 5696 bytes.

On a little-endian system using libtiff 3.7.3 the sizes are reported 
correctly to GraphicsMagick.

Bob
======================================
Bob Friesenhahn
bfriesen@simple.dallas.tx.us, http://www.simplesystems.org/users/bfriesen/
GraphicsMagick Maintainer,    http://www.GraphicsMagick.org/
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
