Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-g.b-one.net (mx-g.one.com [91.198.169.54])
	by mail9.b-one.net (Postfix) with ESMTP id AB49C40024C
	for <info@awaresystems.be>; Fri, 11 Dec 2009 00:00:29 +0100 (CET)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-g.b-one.net (Postfix) with ESMTP id AEBDB623
	for <info@awaresystems.be>; Fri, 11 Dec 2009 00:00:28 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 40A4D1CE32105;
	Thu, 10 Dec 2009 17:59:31 -0500 (EST)
Received: from mail1.multi-ad.com (mail1.multi-ad.com [146.82.87.22])
	by lists.maptools.org (Postfix) with ESMTP id 7146F1D533CAC
	for <tiff@lists.maptools.org>; Thu, 10 Dec 2009 17:31:55 -0500 (EST)
Received: from [192.168.1.4] ([146.82.87.20]) by
	mail1.multi-ad.com (Netscape Messaging Server 4.15) with ESMTP
	id KUGJX700.C7X for <tiff@lists.maptools.org>; Thu, 10 Dec 2009
	16:31:55 -0600 
Mime-Version: 1.0 (Apple Message framework v1077)
From: "Steve Mills" <smills@multi-ad.com>
X-Priority: 3
In-Reply-To: <AD97334B-BE96-4BDE-9616-EB524BC1413D@multiad.com>
Date: Thu, 10 Dec 2009 16:31:54 -0600
Message-Id: <AD015BE0-403C-48A3-BBBA-7F71416B9EDF@multiad.com>
References: <0CAB92DF-9766-485E-AB24-6C995925929F@multiad.com><2045F7DD5B1E4987B16C926D5A61EBD4@awarec74cb3e1c>
	<D1697835-9E70-459D-9B60-D25F49411585@multiad.com>
	<49112330980641049911E0EC03ED0E1C@awarec74cb3e1c>
	<AD97334B-BE96-4BDE-9616-EB524BC1413D@multiad.com>
To: tiff list <tiff@lists.maptools.org>
X-Mailer: Apple Mail (2.1077)
Subject: Re: [Tiff] YCbCr
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

I used the dump function to see what the differences between the jpeg-compressed cmyk files might be. Here's the output for the file saved in Photoshop CS3, the one that produces incorrect results:

TIFFSetField: dummy: Unknown pseudo-tag 65538.
Magic: 0x4d4d <big-endian> Version: 0x2a
Directory 0: offset 8 (0x8) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<4>
ImageLength (257) SHORT (3) 1<4>
BitsPerSample (258) SHORT (3) 4<8 8 8 8>
Compression (259) SHORT (3) 1<7>
Photometric (262) SHORT (3) 1<5>
StripOffsets (273) LONG (4) 1<25360>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<4>
RowsPerStrip (278) SHORT (3) 1<4>
StripByteCounts (279) LONG (4) 1<128>
XResolution (282) RATIONAL (5) 1<72>
YResolution (283) RATIONAL (5) 1<72>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<2>
Software (305) ASCII (2) 30<Adobe Photoshop CS3 Maci ...>
DateTime (306) ASCII (2) 20<2009:12:10 15:08:12\0>
JPEGTables (347) UNDEFINED (7) 558<0xff 0xd8 0xff 0xdb 00 0x84 00 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x3 0x2 0x2 0x2 0x3 0x4 0x3 ...>
700 (0x2bc) BYTE (1) 15890<0x3c 0x3f 0x78 0x70 0x61 0x63 0x6b 0x65 0x74 0x20 0x62 0x65 0x67 0x69 0x6e 0x3d 0x22 0xef 0xbb 0xbf 0x22 0x20 0x69 0x64 ...>
33723 (0x83bb) LONG (4) 2<469893120 33554432>
34377 (0x8649) BYTE (1) 8552<0x38 0x42 0x49 0x4d 0x4 0x4 00 00 00 00 00 0x7 0x1c 0x2 00 00 0x2 00 00 00 0x38 0x42 0x49 0x4d ...>
34665 (0x8769) LONG (4) 1<25488>


And here's the file from CS4, which produces correct results:

TIFFSetField: dummy: Unknown pseudo-tag 65538.
Magic: 0x4d4d <big-endian> Version: 0x2a
Directory 0: offset 8 (0x8) next 0 (0)
SubFileType (254) LONG (4) 1<0>
ImageWidth (256) SHORT (3) 1<4>
ImageLength (257) SHORT (3) 1<4>
BitsPerSample (258) SHORT (3) 4<8 8 8 8>
Compression (259) SHORT (3) 1<7>
Photometric (262) SHORT (3) 1<5>
StripOffsets (273) LONG (4) 1<18814>
Orientation (274) SHORT (3) 1<1>
SamplesPerPixel (277) SHORT (3) 1<4>
RowsPerStrip (278) SHORT (3) 1<4>
StripByteCounts (279) LONG (4) 1<117>
XResolution (282) RATIONAL (5) 1<72>
YResolution (283) RATIONAL (5) 1<72>
PlanarConfig (284) SHORT (3) 1<1>
ResolutionUnit (296) SHORT (3) 1<2>
Software (305) ASCII (2) 30<Adobe Photoshop CS4 Maci ...>
DateTime (306) ASCII (2) 20<2009:12:10 14:35:21\0>
JPEGTables (347) UNDEFINED (7) 285<0xff 0xd8 0xff 0xdb 00 0x43 00 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x2 0x3 0x2 0x2 0x2 0x3 0x4 0x3 ...>
700 (0x2bc) BYTE (1) 15863<0x3c 0x3f 0x78 0x70 0x61 0x63 0x6b 0x65 0x74 0x20 0x62 0x65 0x67 0x69 0x6e 0x3d 0x22 0xef 0xbb 0xbf 0x22 0x20 0x69 0x64 ...>
34377 (0x8649) BYTE (1) 2324<0x38 0x42 0x49 0x4d 0x4 0x25 00 00 00 00 00 0x10 00 00 00 00 00 00 00 00 00 00 00 00 ...>
34665 (0x8769) LONG (4) 1<18932>


The StripOffsets and StripByteCounts are different, as are the JPEGTables. I certainly don't understand any of that, but shouldn't we expect the same row data for each row read?

_________________________________________________________
Steve Mills                              Me: 952-401-6255
Senior Software Architect                         MultiAd
smills@multiad.com                       www.multi-ad.com


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