Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas013.isp.belgacom.be (localhost [127.0.0.1])
        by inav014.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j89NsK3Z022267
        for <joris.at.lebbeke@skynet.be>; Sat, 10 Sep 2005 01:54:20 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx001.isp.belgacom.be (inmx001.isp.belgacom.be [195.238.2.1])
        by inas013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j89NsDdt020979
        for <joris.at.lebbeke@skynet.be>; Sat, 10 Sep 2005 01:54:13 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx001.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j89Ns6jj006193
        for <joris.at.lebbeke@skynet.be>; Sat, 10 Sep 2005 01:54:07 +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 j89NnPqH022704;
	Fri, 9 Sep 2005 19:49:32 -0400
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 j89NnFf5022697
	for <tiff@lists.maptools.org>; Fri, 9 Sep 2005 19:49:15 -0400
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
	j89NnE8a026798; Fri, 9 Sep 2005 18:49:14 -0500 (CDT)
Date: Fri, 9 Sep 2005 18:49:14 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Joris <joris.at.lebbeke@skynet.be>
Subject: Re: [Tiff] creating JPEG file 
In-Reply-To: <002201c5b596$773aef00$f6b6f651@dfgrrxsknr4e>
Message-ID: <Pine.SOC.4.60.0509091840420.13765@blade.simplesystems.org>
References: <000201c5b4a9$545c3950$4500a8c0@MOJO><Pine.SOC.4.60.0509081756210.13765@blade.simplesystems.org><001f01c5b521$57ea0570$58a0f551@dfgrrxsknr4e>
	<Pine.SOC.4.60.0509090951110.13765@blade.simplesystems.org>
	<002201c5b596$773aef00$f6b6f651@dfgrrxsknr4e>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
Cc: TIFF mailing list <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.00000bec
X-MSP-STORE: Sat, 10 Sep 2005 01:54:29 --21-99
Status:   

On Sat, 10 Sep 2005, Joris wrote:
> So, what you want to use should depend on your encapsulating design. I
> would expect an extensive encapsulating app like yours takes care of all
> convertion from/to YCbCr and CMYK and all. It would have to, anyway,
> since these color modes can be used with any compression scheme, not
> just with JPEG compression. So... that's when I guess there's not ever
> any good need for JPEGCOLORMODE_RGB, and that it only serves the purpose
> of complicating things by making resulting/needed color spaces
> compression scheme dependently related to the color space specified in
> the Photometric tags and all... But obviously, I'm missing something,
> since I've made this point before and nobody seems to agree.

Actually, no.  I wimped out and usually specify JPEGCOLORMODE_RGB when 
using JPEG compression.  I am not sure that libtiff supports passing 
subsampled JPEG YCbCr data to and from the user properly.  It is 
challenging since the number of bytes produced is not consistent 
across channels and varies based on the type of subsampling.  There 
were certainly problems with 12-bit JPEG.  Even if it does, doing the 
subsamping is painful.  It is easier left to libtiff (which likely 
passes the burden on to libjpeg).

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/
