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 g9O2jqDT010372
	for <dron@at1895.spb.edu>; Thu, 24 Oct 2002 06:45:52 +0400
Received: from olympiakos.com (uucp@localhost)
	by nataly.at1895.spb.edu (8.12.4/8.12.4/Debian-4) with UUCP id g9O2jqCO010369
	for dron@at1895.spb.edu; Thu, 24 Oct 2002 06:45:52 +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 CAA07715
	for <dron@at1895.spb.edu>; Thu, 24 Oct 2002 02:34:14 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 GAA05638
	for <dron@at1895.spb.edu>; Thu, 24 Oct 2002 06:34:13 +0400 (MSD)
Received: from localhost (daemon@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) with SMTP id WAA17925;
	Wed, 23 Oct 2002 22:22:48 -0400
Received: by gate7.olympiakos.com (bulk_mailer v1.9); Wed, 23 Oct 2002 22:17:31 -0400
Received: (from majordom@localhost)
	by gate7.olympiakos.com (8.9.3/8.9.3) id WAA17836
	for tiff-outgoing; Wed, 23 Oct 2002 22:17:31 -0400
X-Authentication-Warning: gate7.olympiakos.com: majordom set sender to owner-tiff@olympiakos.com using -f
Received: from smtp.serendipity-software.com.au (smtp.serendipity-software.com.au [203.111.83.74])
	by gate7.olympiakos.com (8.9.3/8.9.3) with ESMTP id WAA17833
	for <tiff@olympiakos.com>; Wed, 23 Oct 2002 22:17:29 -0400
Received: from kronos.swdevel.serendipity-software.com.au (kronos.swdevel.serendipity-software.com.au [192.168.3.1])
	by smtp.serendipity-software.com.au (8.12.4/8.12.4) with ESMTP id g9O2HFG7003431;
	Thu, 24 Oct 2002 12:17:17 +1000
Received: from serendipity-software.com.au (troy.swdevel.serendipity-software.com.au [192.168.3.11])
	by kronos.swdevel.serendipity-software.com.au (8.12.4/8.12.4) with ESMTP id g9O2HFgf012185;
	Thu, 24 Oct 2002 12:17:15 +1000
Message-ID: <3DB7582B.7070504@serendipity-software.com.au>
Date: Thu, 24 Oct 2002 12:17:15 +1000
From: peters <peters@serendipity-software.com.au>
Reply-To: peters@serendipity-software.com.au
Organization: Serendipity Software Pty Ltd
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.1) Gecko/20020826
X-Accept-Language: en, el
MIME-Version: 1.0
To: Nicholas Humfrey <njh@ecs.soton.ac.uk>
CC: tiff@olympiakos.com
Subject: Re: 1:2 Compression ?
References: <a05111a04b9dcff0b8d95@[192.168.10.4]>
Content-Type: text/plain; charset=us-ascii; format=flowed
Content-Transfer-Encoding: 7bit
Sender: owner-tiff@olympiakos.com
Precedence: bulk
Content-Transfer-Encoding: 7bit
Status: RO
Content-Length: 1682
Lines: 57

You need to make the strip size larger, this will give you better runs
ie use something like

     TIFFSetField(tiff, TIFFTAG_ROWSPERSTRIP, (int)height); /* To achieve better 
compression */


-- 
Peter Skarpetis
Serendipity Software Pty Ltd
67 Fitzroy Street
Surry Hills NSW 2010
Sydney Australia

Phone: +612 93321788
Fax:   +612 93321766
email: peters@serendipity-software.com.au
WWW:   http://www.riponce.com

Nicholas Humfrey wrote:
> 
> Hi,
> 
> This is probably a stupid question but I have been hunting around for 
> quite a while and can't solve it. Had a look at the header files and 
> manual pages but no luck...
> 
> How do I enable basic 1:2 compression for a TIFF file - in addition to 
> the Image codec compression - such as Packbits.
> 
> I have two identical image files - one compressed using a graphics 
> program and one compressed using libtiff. When comparing using tiffcmp - 
> they it finds no differences.
> 
> However the libtiff file is twice the size of the graphics editor. When 
> I get information about the file I am told that although both files are 
> compressed using PackBits another field says that the libtiff file is 
> compressed 1:1 and the other file is compressed 1:2.
> 
> Is this an extension to TIFF that libtiff can't write ?  - I can 
> read/decode the compressed files fine...
> 
> 
> Cheers,
> 
> 
> nick.
> 
> To subscribe or unsubscribe email tiff-request@olympiakos.com with 
> subscribe
> or unsubscribe in the email body.  Libtiff home page: 
> http://www.libtiff.org



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

