
Thread
2007.08.20 01:34 "[Tiff] can libtiff deal with this file? [re-sent]", by Abraham D. Smith
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