Return-Path: <tiff-bounces@lists.maptools.org>
X-Original-To: info@awaresystems.be
Delivered-To: info@awaresystems.be
Received: from mx-m.b-one.net (mx-m.one.com [91.198.169.60])
	by mail9.b-one.net (Postfix) with ESMTP id 4A640400164
	for <info@awaresystems.be>; Mon,  2 Nov 2009 19:14:51 +0100 (CET)
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-m.b-one.net (Postfix) with ESMTP id 22B98193DCBE
	for <info@awaresystems.be>; Mon,  2 Nov 2009 19:14:50 +0100 (CET)
Received: from localhost.localdomain (localhost.localdomain [127.0.0.1])
	by lists.maptools.org (Postfix) with ESMTP id 5C7E51D191E0B;
	Mon,  2 Nov 2009 13:13:06 -0500 (EST)
Received: from isadora.cybox.com (isadora.cybox.com [206.168.112.10])
	by lists.maptools.org (Postfix) with ESMTP id 8D1181D191ECB
	for <tiff@lists.maptools.org>; Mon,  2 Nov 2009 12:51:47 -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 nA2HpkvM029964; 
	Mon, 2 Nov 2009 10:51:47 -0700
Message-ID: <4AEF1C2D.9070907@cybox.com>
Date: Mon, 02 Nov 2009 10:51:41 -0700
From: Richard Nolde <richard.nolde@cybox.com>
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US;
	rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11
	Thunderbird/3.0b4
MIME-Version: 1.0
To: Bob Friesenhahn <bfriesen@simple.dallas.tx.us>,
	Tiff Listserve <tiff@lists.maptools.org>
Subject: [Tiff] Tiffcrop test suite
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

    The CVS Head version includes the test suite commands for tiffcrop.  
Two of the files in the set currently fail for the extract option 
because the image is smaller than the dimensions of the requested 
region, eg 100x100 pixels.  The image dimensions for the files are 
listed below.  Changing the -X 100 -Y 100 arguments in tiffcrop-extract* 
to -X 60 -Y 60 would allow all but the logluv-3c-16b.tif image to pass. 
The libtiffpic testsuite already contains two logluv images 
libtiffpic/off_luv24.tif and libtiffpic/off_luv32.tif.  My testing with 
the first produces a mostly white output image with two yellow squares 
whereas the second one works fine.  Tiffcp does the same so I suspect 
the issue is in handling the logluv24 compression in the copytags 
logic.  I'll see if I can look into this today but I don't know much 
about logluv.

#!/bin/sh
# Generated file, master is Makefile.am
. ${srcdir:-.}/common.sh
infile="$srcdir/images/minisblack-2c-8b-alpha.tiff"
outfile="o-tiffcrop-extract-minisblack-2c-8b-alpha.tiff"
f_test_convert "$TIFFCROP -U px -E top -X 100 -Y 100" $infile $outfile
f_tiffinfo_validate $outfile
tiffcrop-extract-minisblack-2c-8b-alpha.sh

images/logluv-3c-16b.tiff
   Image Width: 1 Image Length: 1
images/minisblack-1c-16b.tiff
   Image Width: 157 Image Length: 151
images/minisblack-1c-8b.tiff
   Image Width: 157 Image Length: 151
images/minisblack-2c-8b-alpha.tiff
   Image Width: 64 Image Length: 64
images/miniswhite-1c-1b.tiff
   Image Width: 157 Image Length: 151
images/palette-1c-1b.tiff
   Image Width: 157 Image Length: 151
images/palette-1c-4b.tiff
   Image Width: 157 Image Length: 151
images/palette-1c-8b.tiff
   Image Width: 157 Image Length: 151
images/rgb-3c-16b.tiff
   Image Width: 157 Image Length: 151
images/rgb-3c-8b.tiff
   Image Width: 157 Image Length: 151

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