Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas014.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 k2R2epdT016671
        for <joris.at.lebbeke@skynet.be>; Mon, 27 Mar 2006 04:40:51 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx016.isp.belgacom.be (inmx016.isp.belgacom.be [195.238.4.219])
        by inas014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id k2R2efi1007075
        for <joris.at.lebbeke@skynet.be>; Mon, 27 Mar 2006 04:40:41 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx016.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id k2R2eWYf019483
        for <joris.at.lebbeke@skynet.be>; Mon, 27 Mar 2006 04:40:33 +0200
        (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 k2R0ut15030468;
	Sun, 26 Mar 2006 19:57:26 -0500
Received: from outmx024.isp.belgacom.be (outmx024.isp.belgacom.be
	[195.238.4.128])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id k2R0skst030436
	for <tiff@lists.maptools.org>; Sun, 26 Mar 2006 19:54:46 -0500
Received: from outmx024.isp.belgacom.be (localhost [127.0.0.1])
	by outmx024.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with
	ESMTP id k2R0shZF011565
	for <tiff@lists.maptools.org>; Mon, 27 Mar 2006 02:54:43 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Received: from dfgrrxsknr4e (26-134.246.81.adsl.skynet.be [81.246.134.26])
	by outmx024.isp.belgacom.be (8.12.11/8.12.11/Skynet-OUT-2.22) with SMTP
	id k2R0sebM011546; Mon, 27 Mar 2006 02:54:40 +0200
	(envelope-from <joris.at.lebbeke@skynet.be>)
Message-ID: <001701c65139$489c8200$1a86f651@dfgrrxsknr4e>
From: "Joris" <joris.at.lebbeke@skynet.be>
To: "Mikhail Kruk" <meshko@gmail.com>
References: <5a28e8c20603200939h1ee3ab84uff5a5cbc3a4e1bc0@mail.gmail.com><5a28e8c20603201004r667ac48n78dba3128e758bf3@mail.gmail.com><20060320190002.GA15279@ak4719.spb.edu><5a28e8c20603201232i47051a5an5d8d2d66a22a57a9@mail.gmail.com><000a01c64fe3$1b6d5b80$7ea4f551@dfgrrxsknr4e><5a28e8c20603251852n616da34ah12ab5e7d82c24fa3@mail.gmail.com><001c01c65084$fddb7140$b088f651@dfgrrxsknr4e>
	<5a28e8c20603261548v72f121e6q3a01fd9a28c6f9d0@mail.gmail.com>
Subject: Re: [Tiff] 3.8.1 and JPEG problem
Date: Mon, 27 Mar 2006 02:56:01 +0200
MIME-Version: 1.0
Content-Type: text/plain;
	charset="iso-8859-1"
Content-Transfer-Encoding: 7bit
X-Priority: 3
X-MSMail-Priority: Normal
X-Mailer: Microsoft Outlook Express 6.00.2800.1506
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1506
Cc: tiff@lists.maptools.org
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.00001459
X-MSP-STORE: Mon, 27 Mar 2006 04:40:55 +0200
Status:   

Mikhail,

Mikhail Kruk wrote:
> All right, I got the CVS problem partly figured out.  I don't
> understand why diff wasn't showing any differences, but a new checkout
> gave me all your changes.
> I tested again using tiffcp.  The only TIFF file which is
> JPEG-compressed I have is in YCBCR color space.  tiffcp didn't process
> it correctly, I believe there is a bug in it, but when I brute forced
> it to do
> TIFFSetField(in, TIFFTAG_JPEGCOLORMODE, JPEGCOLORMODE_RGB);
> it worked (tiffcp -none jpg.tiff out.tiff produced an unencoded image
> which looks correctly).
> Don't have time to compe up with correct tiffcp patch right now).

That sure sounds like there is still trouble in tif_jpeg.c...

Meanwhile, Frank checked current CVS, and found that at least addtiffo
operates correctly. This addtiffo doesn't use TIFFTAG_JPEGCOLORMODE. My
own tests without TIFFTAG_JPEGCOLORMODE also indicate all is fine now.

- Are you absolutely sure you're working with current CVS? Did you check
the changelog file and found those top entries I specified?
- Are you absolutely sure you're refering to JPEG, and not OJPEG?

I don't have any experience with tiffcp. I don't even have a working
build of that contrib. But if you double-check and confirm you're
working with JPEG compression in current CVS, I guess I'll have to get
tiffcp going on my machine and dig into it... Using
TIFFTAG_JPEGCOLORMODE in tiffcp is no option as far as I'm concerned,
the bug ought to be fixed instead of burried under bad logic. To this
end, could you please specify exact command line parameters, and mail me
all exact TIFF files you're working from as well as all files that
result from your test, so that I can fully double-check and reproduce
your exact problem? (Perhaps you did already and I should have paid more
attention. If so, sorry.)


Best regards,

Joris Van Damme
info@awaresystems.be
http://www.awaresystems.be/
Download your free TIFF tag viewer for windows here:
http://www.awaresystems.be/imaging/tiff/astifftagviewer.html

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