2009.10.30 01:22 "Re: [Tiff] Libtiff release soon, please advise", by Bob Friesenhahn

2009.11.02 17:51 "[Tiff] Tiffcrop test suite", by Richard Nolde

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