[Image-SIG] Cannot Load Pixel Information From PNG Image
Christopher Barker
Chris.Barker at noaa.gov
Thu Jan 6 18:08:52 CET 2011
On 1/5/11 11:50 PM, Karol Krizka wrote:
>> It just lookslike you have an indexed image, instead of an RGB one -
>> Just print out your
>> "im.mode" to get shure -
>>
>
> print im.mode
> 'L'
>
> Hmm, that seemed to have been the problem...
yup.
> For those interested, I now managed to create an RGB image using the
> following command:
> convert house.ppm png24:house.png
you could have converted to RGB inside PIL, as well.
-Chris
--
Christopher Barker, Ph.D.
Oceanographer
Emergency Response Division
NOAA/NOS/OR&R (206) 526-6959 voice
7600 Sand Point Way NE (206) 526-6329 fax
Seattle, WA 98115 (206) 526-6317 main reception
Chris.Barker at noaa.gov
More information about the Image-SIG
mailing list