Return-Path: <owner-tiff@olympiakos.com>
Received: from nataly.at1895.spb.edu (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.4/8.12.4/Debian-4) with ESMTP id g91B0EYR031010
	for <dron@at1895.spb.edu>; Tue, 1 Oct 2002 15:00:14 +0400
Received: from olympiakos.com (uucp@localhost)
	by nataly.at1895.spb.edu (8.12.4/8.12.4/Debian-4) with UUCP id g91B0EwQ031005
	for dron@at1895.spb.edu; Tue, 1 Oct 2002 15:00:14 +0400
Received: from knot.pu.ru (knot.pu.ru [193.124.85.214] (may be forged))
	by wg.pu.ru (8.9.1a/8.9.1) with ESMTP id KAA26874
	for <dron@at1895.spb.edu>; Tue, 1 Oct 2002 10:57:52 GMT
Received: from gate7.olympiakos.com (sdsl-64-32-199-150.dsl.iad.megapath.net [64.32.199.150])
	by knot.pu.ru (8.9.3/8.9.0) with ESMTP id OAA01463
	for <dron@at1895.spb.edu>; Tue, 1 Oct 2002 14:57:51 +0400 (MSD)
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id GAA19005;
	Tue, 1 Oct 2002 06:55:34 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Tue, 1 Oct 2002 06:49:09 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id GAA18945
	for tiff-outgoing; Tue, 1 Oct 2002 06:49:08 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from knot.pu.ru (knot.pu.ru [193.124.85.214] (may be forged))
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id GAA18942
	for <tiff@olympiakos.com>; Tue, 1 Oct 2002 06:49:07 -0400
Received: from at1895.spb.edu (vg5701.ekran.pu.ru [195.70.200.131])
	by knot.pu.ru (8.9.3/8.9.0) with ESMTP id OAA00514
	for <tiff@olympiakos.com>; Tue, 1 Oct 2002 14:49:04 +0400 (MSD)
Received: from nataly.at1895.spb.edu (localhost [127.0.0.1])
	by at1895.spb.edu (8.12.4/8.12.4/Debian-4) with ESMTP id g91AnuYR028082
	for <tiff@olympiakos.com>; Tue, 1 Oct 2002 14:49:56 +0400
Received: (from dron@localhost)
	by nataly.at1895.spb.edu (8.12.4/8.12.4/Debian-4) id g91AnVEj027969
	for tiff@olympiakos.com; Tue, 1 Oct 2002 14:49:31 +0400
From: Andrey Kiselev <dron@at1895.spb.edu>
Date: Tue, 1 Oct 2002 14:49:31 +0400
To: tiff@olympiakos.com
Subject: Re: Error message with tiffcp
Message-ID: <20021001104931.GB10534@at1895.spb.edu>
Mail-Followup-To: tiff@olympiakos.com
References: <KMEPJAGMPIPGPEGGMMPDAEODCHAA.mujtaba@bitsmart.com>
Mime-Version: 1.0
Content-Type: multipart/signed; micalg=pgp-sha1;
	protocol="application/pgp-signature"; boundary="pvezYHf7grwyp3Bc"
Content-Disposition: inline
In-Reply-To: <KMEPJAGMPIPGPEGGMMPDAEODCHAA.mujtaba@bitsmart.com>
User-Agent: Mutt/1.4i
X-GnuPG-Key: http://www.srces.spb.org/dron/export.work.key
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Status: RO
Content-Length: 1916
Lines: 61


--pvezYHf7grwyp3Bc
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Content-Transfer-Encoding: quoted-printable

On Mon, Sep 30, 2002 at 06:09:28PM -0400, Mujtaba Ali wrote:
> I get the following error with tiffcp"
>=20
> bash-2.05# tiffcp -c jpeg fax.tif fax.jpg
> JPEGSetupEncode: BitsPerSample 1 not allowed for JPEG.
>=20
> I don't have that much experience with image formats.  Can anyone please
> shed some light on what other command line options I might need?  I have
> read over the man page a couple times and can't figure it out.

JPEG compression of the 1-bit image planes are not supported by the libtiff.
You should convert your image to the grayscale or RGB colour space
before applying JPEG.
This could be done by the folloowing sequence:

$ tiff2rgba -n fax.tif fax2.tif
$ tiff2bw -c jpeg fax2.tif fax3.tif

fax3.tif will be JPEG compressed.

Note, that this will not be pure JPEG-file, but JPEG incapsulated in TIFF.
Other compression methods, like PackBits, will give you better results
for your 1-bit images.

If you want to produce pure JPEG-images you need other tools,
for example, ImageMagick (http://www.imagemagick.org/):

$ convert fax.tif fax.jpg

should be enough for your task.

--=20
Andrey V. Kiselev
Scientific Research Center for Ecological Safety Russian Academy of Sciences
Office phone:  +7 812 2307834  ICQ UIN 26871517
Registered Linux user number 169907


--pvezYHf7grwyp3Bc
Content-Type: application/pgp-signature
Content-Disposition: inline

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.6 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE9mX27tIsonFna/XkRAnloAJwIY6u4B/WDu2JUuxO7K726FRfoUQCbB9fH
4gZM7y5hWjPKo30bArGNmFc=
=4mzH
-----END PGP SIGNATURE-----

--pvezYHf7grwyp3Bc--

To subscribe or unsubscribe email tiff-request@olympiakos.com with subscribe
or unsubscribe in the email body.  Libtiff home page: http://www.libtiff.org

