Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-j.b-one.net (mx-j.one.com [91.198.169.57])
	by mail9.b-one.net (Postfix) with ESMTP id 9612F40013D
	for <info@awaresystems.be>; Tue,  7 Jul 2009 20:23:53 +0200 (CEST)
X-Virus-Scanned: by one.com
X-Spam-Score: 0
X-Spam-Level: 
X-Spam-Status: No, score=0 tagged_above=0 required=6 tests=[none]
X-Greylist: domain auto-whitelisted by SQLgrey-1.7.4
Received: from lists.maptools.org (lists.maptools.org [65.39.174.144])
	by mx-j.b-one.net (Postfix) with ESMTP id EB8984A8269
	for <info@awaresystems.be>; Tue,  7 Jul 2009 20:23:52 +0200 (CEST)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 8982B1D18DE8C;
	Tue,  7 Jul 2009 13:23:00 -0500 (EST)
Received: from isadora.cybox.com (isadora.cybox.com [206.168.112.10])
	by lists.maptools.org (Postfix) with ESMTP id 89BE61D18F9C7
	for <tiff@lists.maptools.org>; Tue,  7 Jul 2009 12:39:48 -0500 (EST)
Received: from boreas.wriverody.net (vc7-1-52.dsl.netrack.net [199.45.160.84]
	(may be forged)) (authenticated)
	by isadora.cybox.com (msa 8.13.8/8.13.6) with ESMTP id n67Hddb6008620; 
	Tue, 7 Jul 2009 11:39:40 -0600
Message-ID: <4A538855.9090904@cybox.com>
Date: Tue, 07 Jul 2009 11:39:33 -0600
From: Richard Nolde <richard.nolde@cybox.com>
User-Agent: Thunderbird 2.0.0.21 (X11/20090320)
MIME-Version: 1.0
To: Kevin Myers <kmyers1@clearwire.net>
References: <mailman.5.1246986002.14946.tiff@lists.maptools.org>
In-Reply-To: <mailman.5.1246986002.14946.tiff@lists.maptools.org>
Cc: tiff@lists.maptools.org
Subject: Re: [Tiff] Tiff Digest, Vol 62, Issue 5
X-BeenThere: tiff@lists.maptools.org
X-Mailman-Version: 2.1.9
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>
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Sender: tiff-bounces@lists.maptools.org
Errors-To: tiff-bounces@lists.maptools.org

Kevin,
   The version of tiffcrop that was distributed with libtiff-3.8.2 is 
very old indeed.  If you type tiffcrop -v, the current release should show:
 tiffcrop -v
Tiffcrop version: 2.0, last updated: 02-12-2009.
Tiffcp code: Copyright (c) 1988-1997 Sam Leffler.
           : Copyright (c) 1991-1997 Silicon Graphics, Inc.
Tiffcrop additions: Copyright (c) 2007-2009 Richard Nolde.

Please download the current code from CVS for 3.9 or 4.0 if you need 
BIGTIFF support. I don't have a build of the old release around any 
more, but I am fairly certain that your command line should work unless 
there are issues with the original TIFF files.  I had to put a patch 
into the original code that handled the case where no resolution unit is 
specified and may be the issue. If you send me the results of running 
tiffinfo on the file it might help.

   If you cannot download the current source from CVS, please let me 
know and I can send it to your directly. I don't have a Windows build of 
libtiff as I work on Linux and AIX, but I could try to cross compile a 
tiffcrop executable at some point.  Lacking any access to or need for 
Microsoft tools, I doubt that it would match the distributed version.

Richard Nolde
tiffcrop author

> Today's Topics:
>
>    1. tiffcrop using incorrect units (Kevin Myers)
>
>
> ----------------------------------------------------------------------
>
> Message: 1
> Date: Mon, 6 Jul 2009 19:38:47 -0500
> From: "Kevin Myers" <kmyers1@clearwire.net>
> Subject: [Tiff] tiffcrop using incorrect units
> To: <tiff@lists.maptools.org>
> Message-ID: <68D95D5E839040D4B04962B7DC31E266@KAM1720>
> Content-Type: text/plain; charset="iso-8859-1"
>
> I am attempting to use the tiffcrop utility to crop some extremely large images (multi-hundred megapixel) so that I can process the resulting smaller images in an OCR application.  Unfortunately, tiffcrop seems to be ignoring or misinterpreting the pixel units that I have specified using the -U option.  Here is the command that I used:
>
> tiffcrop -i -E top -U px -X 2400 -Y 4800 oldfile.tif newfile.tif
>
> I am using libtiff version 3.8.2 under Windows XP.  Based on results with different -X and -Y values, it appears that tiffcrop is interpreting the values as inches rather than pixels.
>
> Am I doing something wrong?
>
> Thanks,
> Kevin M.
>
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://lists.maptools.org/mailman/private/tiff/attachments/20090706/7ecfbdf3/attachment-0001.htm 
>
> ------------------------------
>
> _______________________________________________
> Tiff mailing list
> Tiff@lists.maptools.org
> http://lists.maptools.org/mailman/listinfo/tiff
>
> End of Tiff Digest, Vol 62, Issue 5
> ***********************************
>
>
>   
_______________________________________________
Tiff mailing list: Tiff@lists.maptools.org
http://lists.maptools.org/mailman/listinfo/tiff
http://www.remotesensing.org/libtiff/
