[Image-SIG] What colour model does the image use

Nadav Horesh nadavh at visionsense.com
Wed Nov 7 21:16:26 CET 2007

Try the following image methods:

im.getbands()  # Probably this is what you want


-----Original Message-----
From: image-sig-bounces at python.org on behalf of export at hope.cz
Sent: Wed 07-Nov-07 15:57
To: Image-SIG at python.org
Subject: [Image-SIG] What colour model does the image use
I use im.getpixel((x,y)) to find out the colour of a pixel.
But how can I find out in which color model  the  the  return value is?

For example  for png picture format

im.getpixel((20,50))  gives the result 60.

What does the value mean?
Is it possible to find out the RGB model values?

Thank you for help.

Image-SIG maillist  -  Image-SIG at python.org

More information about the Image-SIG mailing list