(none) imager-devel
/ help / lists / applications / search /

16 bit tiff images not detected properly

From: Alex Teslik (
Date: Tue 02 Aug 2005 - 23:25:16 GMT

  • Next message: Tony Cook: "Re: 16 bit tiff images not detected properly"

    I'm trying to grab image info using Imager. All of my images are 16 bit tiff
    images, but Imager is reporting them as 8 bit images. libtiff seems to see
    them correctly (my understanding is that Imager is using the libtiff libraries?).

    FreeBSD 4.10-RELEASE-p5
    perl 5.8.5 i386-freebsd-64int

    Imager 0.44


    [alex]/images# perl -e '{use Imager; my $img = Imager->new();
    $img->open(file=>"T00316_N0009_00.tif"); print $img->bits() . "\n";}'
    [alex]/images# tiffinfo T00316_N0009_00.tif
    TIFF Directory at offset 0x4b8
    Subfile Type: (0 = 0x0)
    Image Width: 9416 Image Length: 7482
    Resolution: 2040, 2040 pixels/inch
    Bits/Sample: 16
    Compression Scheme: None
    Photometric Interpretation: min-is-black
    Samples/Pixel: 1
    Rows/Strip: 7482
    Planar Configuration: single image plane
    ICC Profile: <present>, 1200 bytes