Received: by smtp02.oce.nl (4.1/SMI-4.1)
	id AA02154; Tue, 21 Jul 98 17:40:21 +0200
Received: from sgi.sgi.com (SGI.COM [192.48.153.1])
	by oce.nl (8.9.0/8.9.0) with ESMTP id RAA27486
	for <rvdt@oce.nl>; Tue, 21 Jul 1998 17:19:22 +0200 (MET DST)
Received: from cthulhu.engr.sgi.com (cthulhu.engr.sgi.com [192.26.80.2]) 
	by sgi.sgi.com (980309.SGI.8.8.8-aspam-6.2/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id IAA17391; Tue, 21 Jul 1998 08:17:09 -0700 (PDT)
	mail_from (owner-tiff@sgi.engr.sgi.com)
Received: (from majordomo-owner@localhost)
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	id HAA82282
	for tiff-list;
	Tue, 21 Jul 1998 07:18:57 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from sgi.sgi.com (sgi.engr.sgi.com [192.26.80.37])
	by cthulhu.engr.sgi.com (980427.SGI.8.8.8/970903.SGI.AUTOCF)
	via ESMTP id HAA89458
	for <tiff-relay@cthulhu.engr.sgi.com>;
	Tue, 21 Jul 1998 07:18:55 -0700 (PDT)
	mail_from (owner-tiff@sgi.sgi.com)
Received: from sss.sss.pgh.pa.us (sss.pgh.pa.us [206.210.65.6]) 
	by sgi.sgi.com (980309.SGI.8.8.8-aspam-6.2/980304.SGI-aspam:
       SGI does not authorize the use of its proprietary
       systems or networks for unsolicited or bulk email
       from the Internet.) 
	via ESMTP id HAA27434
	for <tiff@sgi.com>; Tue, 21 Jul 1998 07:18:50 -0700 (PDT)
	mail_from (tgl@sss.pgh.pa.us)
Received: from sss.sss.pgh.pa.us (localhost [127.0.0.1])
	by sss.sss.pgh.pa.us (8.9.1/8.9.1) with ESMTP id KAA23658;
	Tue, 21 Jul 1998 10:18:39 -0400 (EDT)
To: Z9SLMANN@am.pnu.com
Cc: tiff@sgi.com
Subject: Re: Tiff2ps with JPEG 
In-Reply-To: Your message of Tue, 21 Jul 1998 08:45:00 -0400 
             <0014EC21.001444@am.pnu.com> 
Date: Tue, 21 Jul 1998 10:18:38 -0400
Message-Id: <23656.901030718@sss.pgh.pa.us>
From: Tom Lane <tgl@sss.pgh.pa.us>
Sender: owner-tiff@fddi-sgi.sgi.com
Precedence: bulk

Z9SLMANN@am.pnu.com writes:
>      I am attempting to use the tiff2ps utility in UNIX for TIFF images
>      stored with JPEG compression.  The TIFF images are scanned using a
>      variety of scanners and drivers.  I am getting an error message when I
>      try to create the postscript file - 'Old-Style JPEG compression
>      support is not configured'.

I'm afraid you're out of luck.  Libtiff only supports TIFF/JPEG per the
new Compression=7 style defined in TIFF Tech Note #2.  Evidently some of
your source files use one or another interpretation of the old
Compression=6 style.

Compression=6 is a real morass, not only because of the old spec's
ambiguities (which are described in the Tech Note), but because several
purported TIFF/JPEG writers write files that are compatible with *no*
defensible reading of the old spec.  To read their files you have to
ignore the specification and instead "just know" where to pull out the
data and what it means.

A generic reader that would handle everything that claims to be
old-style TIFF/JPEG may not even be possible.  It certainly wouldn't be
easy, and I would not expect it to work with any variant it hadn't been
specifically tested and debugged with.  None of the principal libtiff
contributors are interested in venturing into that morass.

If you just have one or two sources to deal with, you could decipher the
idiosyncracies of their particular interpretations of TIFF/JPEG and then
write some sort of conversion program to reformat the data as new-style
TIFF/JPEG.  See TIFF 6.0 Section 22 and Tech Note #2 for details
(they're available at ftp.sgi.com/graphics/tiff/ among other places).

I think a couple of people on this list have had to do something like
this already ... but of course their solutions are no more general-
purpose than I'm suggesting yours be.

			regards, tom lane
			organizer, Independent JPEG Group
