Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas009.isp.belgacom.be (localhost [127.0.0.1])
        by inav024.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id k17DNQJj007686
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Feb 2006 14:23:27 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx004.isp.belgacom.be (inmx004.isp.belgacom.be [195.238.5.48])
        by inas009.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k17DNN4x031004
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Feb 2006 14:23:25 +0100
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx004.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k17DNEZ5022060
        for <joris.at.lebbeke@skynet.be>; Tue, 7 Feb 2006 14:23:15 +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 k17DCgdV031460;
	Tue, 7 Feb 2006 08:13:04 -0500
Received: from helios.sciencephoto.co.uk (helios.sciencephoto.co.uk
	[194.200.237.129])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k17DCdnb031432
	for <tiff@lists.maptools.org>; Tue, 7 Feb 2006 08:12:40 -0500
Received: from [194.200.237.140] (helo=[194.200.237.140])
	by helios.sciencephoto.co.uk with esmtp (Exim 3.16 #3)
	id 1F6Se4-0003JD-00; Tue, 07 Feb 2006 13:12:36 +0000
From: "Dermot Paikkos" <dermot@sciencephoto.com>
To: "Joris" <joris.at.lebbeke@skynet.be>
Date: Tue, 07 Feb 2006 13:11:48 -0000
MIME-Version: 1.0
Subject: Re: [Tiff] Re: Mega newbie question
Message-ID: <43E89C94.6701.65FA566D@dermot.sciencephoto.co.uk>
Priority: normal
In-reply-to: <005001c62bde$9cb43e30$27b8f651@dfgrrxsknr4e>
X-mailer: Pegasus Mail for Windows (4.31)
Content-type: text/plain; charset=US-ASCII
Content-transfer-encoding: 7BIT
Content-description: Mail message body
Cc: tiff@lists.maptools.org
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.4
Precedence: list
Reply-To: dermot@sciencephoto.com
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.0000126b
X-MSP-STORE: Tue, 07 Feb 2006 14:23:32 +0100
Status:   

On 7 Feb 2006 at 12:48, Joris wrote:

> Dermot Paikkos wrote:

> /* value of Photoshop tag is count bytes long, and its value is loaded
> into the memory pointed to by data */
> 
> > TIFFReadDirectory: Warning, test.tif: wrong data type 1 for
> > "XMLPacket"; tag ignored.
> > TIFFReadDirectory: Warning, test.tif: unknown field with tag 34665
> > (0x8769) encountered.
> 
> Ignore above warnings.
> 
> BTW, I just noticed, the situation with the uint16 count is corrected
> for the Photoshop tag. Declare count as uint32 instead.
> 
> I still think the general case should be uint32, instead of uint16,
> though, but this should not bother you.

Now I'm cooking...


uint32 give me:
=========
...snip
  if (TIFFGetField(tif, TIFFTAG_PHOTOSHOP, &count, &data) == 0) {
          printf("No PhotoShop Tag found\n");
          exit(8);
  }

  printf("Size of PhotoShop Tag is %d bytes. Type is %d\n", count , 
data);

  TIFFClose(tif);
  return 0;
==========

>Size of PhotoShop Tag is 6134 bytes. Type is 136490136

Which is the same size as reported by the wonderfull AsTiffTagviewer.

Thanx a lot.
Dp.

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