PIL handles 8x3 bit images with mode RGB. higher bit depth images are grayscale only. I have gotten around this particular problem by storing bands separately in tupples as (R, G, B). I did have to write my own file decoder to handle this though. Edward
On Tue, Apr 13, 2010 at 2:21 AM, Sebastian Haase <seb.ha...@gmail.com> wrote: > On Tue, Apr 13, 2010 at 10:52 AM, Dan Blacker > <dan.blac...@googlemail.com> wrote: >> Hey guys, >> >> Thanks for your input, >> >> The image is only of a tiny cropped area of a long strip of color kodachrome >> film - I will send a better example with some more color in it when I get a >> chance. >> >> I was under the impression that PIL handled 16 bit images (experimentally) >> but does this only apply to 16-bit grayscale images? >> >> Am I going up a dead end trying to read my images with PIL? >> > Dan, > read my first reply: if someone could figure out how to add the > "correct" key line, > it might be an easy fix. > Otherwise I would try to use imagemagick (or alike) to separate RGB > into 3 separate gray images. > I am working with 16-bit gray TIFs in PIL for many years without > problem. (only to go immediately to numpy arrays then though; I can't > say anything about PIL's other functions, like cropping...) > > - Sebastian > _______________________________________________ > Image-SIG maillist - image-...@python.org > http://mail.python.org/mailman/listinfo/image-sig > _______________________________________________ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig