Received: from mailgate011.isp.belgacom.be (mailgate011.isp.belgacom.be [195.238.6.4])
	by maildelivery012.isp.belgacom.be (Postfix) with ESMTP id 9D24C254002
	for <joris.at.lebbeke@skynet.be>; Mon, 20 Aug 2007 03:52:01 +0200 (CEST)
Received: from r153.dmsolutions.ca (HELO duke.maptools.org) ([209.217.116.153])
  by in.mx.skynet.be with ESMTP; 20 Aug 2007 03:52:01 +0200
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 l7K1YZHr002060;
	Sun, 19 Aug 2007 21:35:53 -0400
Received: from cdptpa-omtalb.mail.rr.com (cdptpa-omtalb.mail.rr.com
	[75.180.132.121])
	by duke.maptools.org (8.12.11/8.12.10) with ESMTP id l7K1YOSF002056
	for <tiff@lists.maptools.org>; Sun, 19 Aug 2007 21:34:25 -0400
Received: from katie.tock.no-ip.org ([76.182.23.20])
	by cdptpa-omta04.mail.rr.com with ESMTP id
	<20070820013423.LWVC5565.cdptpa-omta04.mail.rr.com@katie.tock.no-ip.org>
	for <tiff@lists.maptools.org>; Mon, 20 Aug 2007 01:34:23 +0000
Received: by katie.tock.no-ip.org (Postfix, from userid 208)
	id 11CE02DE9D5; Sun, 19 Aug 2007 21:34:21 -0400 (EDT)
X-Spam-Checker-Version: SpamAssassin 3.2.1 (2007-05-02) on katie.tock.no-ip.org
X-Spam-Level: 
X-Spam-Status: No, score=-4.4 required=10.0 tests=ALL_TRUSTED,BAYES_00
	autolearn=ham version=3.2.1
Received: from hagrid (router.tock.no-ip.org [192.168.1.1])
	(using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits))
	(Client CN "*.tock.no-ip.org", Issuer "*.tock.no-ip.org" (verified OK))
	by katie.tock.no-ip.org (Postfix) with ESMTP id 14D902DE9D0
	for <tiff@lists.maptools.org>; Sun, 19 Aug 2007 21:34:21 -0400 (EDT)
Received: by hagrid (sSMTP sendmail emulation); Sun, 19 Aug 2007 21:34:21 -0400
Date: Sun, 19 Aug 2007 21:34:21 -0400
From: "Abraham D. Smith" <abe+tiff@tock.no-ip.org>
To: tiff@lists.maptools.org
Message-ID: <20070820013421.GA1417@hagrid.tock.no-ip.org>
MIME-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
Openpgp: id=22D1FA20
X-Url: http://fds.duke.edu/db/aas/math/grad/adsmith
User-Agent: Mutt/1.5.13 (2006-08-11)
Subject: [Tiff] can libtiff deal with this file? [re-sent]
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-UIDL: 000000000023ceae.00002738
X-MSP-STORE: Mon, 20 Aug 2007 03:52:01 +0200
Status:   


I have hundreds of gigabytes of microscope images which libTiff cannot
seem to handle properly.  Indeed, the only program on Linux which can
seem to handle these files is the NIH's ImageJ.  Every libtiff-based
image viewer seems to truncate the brightness.  

A sample file can be found here

http://tock.no-ip.org/~abe/test.tif

Here is a side-by-side comparison of how ImageMagick (using libtiff
3.8.2) displays the image, and how ImageJ correctly displays it:

http://tock.no-ip.org/~abe/screen.png


tiffinfo (v 3.8.2) gives this info for the file.

TIFF Directory at offset 0x8 (8)
  Subfile Type: (0 = 0x0)
  Image Width: 992 Image Length: 800
  Bits/Sample: 16
  Compression Scheme: None
  Photometric Interpretation: min-is-black
  Samples/Pixel: 1
  Rows/Strip: 800
  Planar Configuration: single image plane
  ImageDescription: ImageJ=1.37v
min=457.0
max=16383.0


ImageJ gives this info for the file:

Title: test.tif
Width:  992 pixels
Height:  800 pixels
Coordinate origin:  0,0
Bits per pixel: 16 (unsigned)
Display range: 457 - 16383
No Threshold
Magnification: 0.75
Uncalibrated
Path: /home/abe/Desktop/test.tif
No Selection



Any help on getting libtiff to handle this file would be greatly
appreciated!

Thanks,
Abe Smith


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