[Image-SIG] More on QuickBird Tiffs

Bob Kimble bob@iplicity.com
Wed, 20 Nov 2002 03:23:25 -0500


On Wednesday 20 November 2002 02:52 am, K Schutte wrote:
> I see two problem areas:
>
> - the image file has 16 bit samples, and standard PIL doesn't like that
> - there are 4 samples per pixel; PIL (probably) only likes 1 (grayscale=
) or
> 3 (RGB)
>
> PIL based solution (probably requires coding):
>
> - make PIL handle 16 bit unsigned integer TIFFs (see my patches of
> yesterday) - make PIL read each color plane at a time, and combine late=
r to
> RGB, or - make PIL ignore the fourth color plane (if current PIL can ha=
ndle
> separate image planes.)
>
> Good luck,
>
> Klamer
>
> PS: trying to convert to 'standard' formats with 'standard' utilities w=
ill
> not work, as there are few 'standard' utilities which properly support =
16
> bit unsigned integers as pixel type...

I tried downloading and opening a sample QuickBird GeoTiff image using=20
ImageMagick and the GIMP, and both failed. I guess that means that my ear=
lier=20
idea will not work here.

> Joel Lawhead wrote:
> > Here's the output from tiffinfo on the QuickBird GeoTiff I'm trying t=
o
> > work with in PIL. Does anyone see anything that would stump PIL? I've
> > tried opening the image using PIL 1.1.2 through 1.1.4a1. I currently
> > have 1.1.4a1 installed on a Windows 2000 Pro machine with Python 2.2.
> > Everything seems to work fine but these GeoTiffs from Digital Globe. =
 I
> > think the planar configuration may not be typical. Does PIL support
> > separate plane tiffs?
> >
> > TIFF Directory at offset 0x8000018
> >   Image Width: 4096 Image Length: 4096
> >   Bits/Sample: 16
> >   Sample Format: unsigned integer
> >   Compression Scheme: None
> >   Photometric Interpretation: RGB color
> >   Extra Samples: 1<unspecified>
> >   Date & Time: "2002:04:18 17:49:41"
> >   Copyright: "(C) COPYRIGHT 2002 EarthWatch Incorporated, Longmont CO
> > USA 80501-6700"
> >   Image Description: "{\n  bandList =3D \n  [\n    1;\n    2;\n    3;=
\n
> > 4;\n  ]\n}"
> >   Orientation: row 0 top, col 0 lhs
> >   Samples/Pixel: 4
> >   Rows/Strip: 128
> >   Planar Configuration: separate image planes
> >
> > Thanks,
> > Joel
> >
> > _______________________________________________
> > Image-SIG maillist  -  Image-SIG@python.org
> > http://mail.python.org/mailman/listinfo/image-sig