Return-Path: <tiff-bounces@lists.maptools.org>
Delivered-To: info@awaresystems.be
Received: (qmail 23236 invoked from network); 23 Oct 2008 11:04:12 -0000
Received: from kudos.telenet-ops.be ([195.130.136.13])
          (envelope-sender <tiff-bounces@lists.maptools.org>)
          by angelia.telenet-ops.be (qmail-ldap-1.03) with SMTP
          for <info@awaresystems.be>; 23 Oct 2008 11:04:12 -0000
Received: from zimbu.telenet-ops.be (zimbu.telenet-ops.be [195.130.136.11])
	by kudos.telenet-ops.be (8.13.1/8.13.1) with ESMTP id m9NB4AgC027228
	for <info@awaresystems.be>; Thu, 23 Oct 2008 13:04:10 +0200
Received: from localhost (localhost.localdomain [127.0.0.1])
	by zimbu.telenet-ops.be (Postfix) with SMTP id A4B8F40003
	for <info@awaresystems.be>; Thu, 23 Oct 2008 13:04:10 +0200 (CEST)
Received: from apate.telenet-ops.be (apate.telenet-ops.be [195.130.132.43])
	by zimbu.telenet-ops.be (Postfix) with ESMTP id 9ECCF40002
	for <info@awaresystems.be>; Thu, 23 Oct 2008 13:04:10 +0200 (CEST)
Received: from duke.maptools.org (r153.dmsolutions.ca [209.217.116.153])
	by apate.telenet-ops.be (Postfix) with ESMTP id 5914627EC07
	for <info@awaresystems.be>; Thu, 23 Oct 2008 13:04:10 +0200 (CEST)
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 m9NB0L2w021678;
	Thu, 23 Oct 2008 07:02:02 -0400
Received: from zynlfw01.zylab.com (mx.zylab.com [194.178.9.130])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id m9NB0Io5021675
	for <tiff@lists.maptools.org>; Thu, 23 Oct 2008 07:00:19 -0400
Received: from zynlms01.ZyLAB.WAN (zynlms01.zylab.wan [192.168.1.10])
	by zynlfw01.zylab.com (Postfix) with ESMTP id D561E406
	for <tiff@lists.maptools.org>; Thu, 23 Oct 2008 13:00:17 +0200 (CEST)
X-MimeOLE: Produced By Microsoft Exchange V6.5
Content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain;
	charset="utf-8"
Subject: Re: [Tiff] JPEGSetupEncode messages
Date: Thu, 23 Oct 2008 12:56:48 +0200
Message-ID: <FC840EC0BF7BFA45A0F94548AF36920D05B37514@zynlms01.ZyLAB.WAN>
X-MS-Has-Attach: 
X-MS-TNEF-Correlator: 
Thread-Topic: [Tiff] JPEGSetupEncode messages
Thread-Index: Ack0jZoQE/x8QALxTqmC2Pr+mIRKEAAbPB0Q
References: <30e395780810221412x2e39ecdfi3a9af9e0a46bd291@mail.gmail.com>
From: "Gerben Vos" <Gerben@zylab.com>
To: <tiff@lists.maptools.org>
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from base64 to 8bit by duke.maptools.org id
	m9NB0Io5021675
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-SpamCatcher-Score: 50 [XX]

Jeffrey Ratcliffe wrote:

> JPEGSetupEncode: RowsPerStrip must be multiple of 8 for JPEG

Add the "-r 8" option to tiffcp. Or 16, or 24, or...

> JPEGSetupEncode: BitsPerSample 16 not allowed for JPEG

Reduce it to 8 bits (or compile a 12 bits version of libjpeg and link
it to libtiff, then reduce your image to 12 bits and rest assured in
the knowledge that almost no-one will be able to decode it).

Libtiff doesn't contain helper programs for that. With the almost
universally available netpbm package, you can reduce to 8 bits with
something along the lines of "tifftopnm image.tiff |pamdepth 255
|pnmtotiff -color -truecolor >tmp.tiff; tiffcp -c jpeg tmp.tiff
output.tiff". (Funny that pnmtotiff doesn't have a JPEG option, by
the way.) There are many other imaging packages that can do this for
you from the command line, such as imagemagick, graphicsmagick and
vips.

					Gerben Vos.

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