Re: python PIL 16-bit tiff files

Edward Cannon <[email protected]>
Newsgroups gmane.comp.python.image
Message-ID <[email protected]>
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 <[email protected]> wrote:
> On Tue, Apr 13, 2010 at 10:52 AM, Dan Blacker
> <[email protected]> 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  -  [email protected]
> http://mail.python.org/mailman/listinfo/image-sig
>
_______________________________________________
Image-SIG maillist  -  [email protected]
http://mail.python.org/mailman/listinfo/image-sig
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.