Return-Path: <tiff-bounces@lists.maptools.org>
Received: from inas022.isp.belgacom.be (localhost [127.0.0.1])
        by inav013.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AV-3.00) with ESMTP id j88KCd1Q012436
        for <joris.at.lebbeke@skynet.be>; Thu, 8 Sep 2005 22:12:40 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from inmx003.isp.belgacom.be (inmx003.isp.belgacom.be [195.238.3.11])
        by inas022.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-AS-2.03) with ESMTP id j88KCbah015849
        for <joris.at.lebbeke@skynet.be>; Thu, 8 Sep 2005 22:12:37 +0200
        (envelope-from <tiff-bounces@lists.maptools.org>)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153] (may be forged))
        by inmx003.isp.belgacom.be (8.12.11/8.12.11/Skynet-IN-2.32) with ESMTP id j88KCaYO029283
        for <joris.at.lebbeke@skynet.be>; Thu, 8 Sep 2005 22:12:37 +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 j88K83QA011258;
	Thu, 8 Sep 2005 16:08:10 -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 j88K7xvO011255
	for <tiff@lists.maptools.org>; Thu, 8 Sep 2005 16:08:00 -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
	j88K7s8a005291; Thu, 8 Sep 2005 15:07:54 -0500 (CDT)
Date: Thu, 8 Sep 2005 15:07:54 -0500 (CDT)
From: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>
X-X-Sender: bfriesen@blade.simplesystems.org
To: Philip Watkinson <pwatkins@crawfordtech.com>
Subject: Re: [Tiff] creating JPEG file 
In-Reply-To: <000201c5b4a9$545c3950$4500a8c0@MOJO>
Message-ID: <Pine.SOC.4.60.0509081459320.13765@blade.simplesystems.org>
References: <000201c5b4a9$545c3950$4500a8c0@MOJO>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed
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.00000bcb
X-MSP-STORE: Thu, 08 Sep 2005 22:12:42 +0200
Status:   

On Thu, 8 Sep 2005, Philip Watkinson wrote:

> I have some image data with the following conditions:
>
> 1. There can be 1 or more tiles for each image.
> 2. For each tile, there are 4 planes. Each plane corresponds to the
> components in the CYMK colour space.
> 3. The data for each plane is JPEG encoded.

Yup, sounds feasable within the specification.

> Using Libtiff 3.7.1, is it possible to create a single JPEG image file?
> If so, is there sample code available?

What exactly do you mean by "single JPEG image file".

I assume that development GraphicsMagick 1.2 can be used to read/write 
files like you describe via libtiff although I have not specifically 
tested this combination with JPEG compression.  Support is present for 
all three of your conditions.  GraphicsMagick is open source and free 
to use for any purpose.

I definitely recommend using version 3.7.3 rather than 3.7.1 since it 
has fewer bugs (see ChangeLog for 3.7.3).

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/
