Re: Get pixel colors from images in Python 3

2009-03-15 Thread Tim Roberts
Cro wrote: > >As the title sais, i am trying to extract pixel colors from images, in >Python 3. >... >Can anyone suggest how to do that ? >The bigger problem is that i need to extract pixel colors for many >types of images : JPEG, PNG, BMP, GIF. For this, i might need >different codecs... I am not

Re: Get pixel colors from images in Python 3

2009-03-14 Thread Tino Wildenhain
Daniel Fetchinson wrote: I've noticed that Pygame has some similar implementation. It's a little harder to use, but efficient. And i think it depends on PIL too. And Pygame is Python 2.x too... ... When I asked about it there I was told that some work already has started on porting PIL to py

Re: Get pixel colors from images in Python 3

2009-03-13 Thread Daniel Fetchinson
> I've noticed that Pygame has some similar implementation. > It's a little harder to use, but efficient. > > And i think it depends on PIL too. > And Pygame is Python 2.x too... > > So, not good. I'd also like to use PIL with python 3 and was told that PIL's author mostly frequents the image-sig

Re: Get pixel colors from images in Python 3

2009-03-13 Thread Cro
I've noticed that Pygame has some similar implementation. It's a little harder to use, but efficient. And i think it depends on PIL too. And Pygame is Python 2.x too... So, not good. -- http://mail.python.org/mailman/listinfo/python-list

Get pixel colors from images in Python 3

2009-03-13 Thread Cro
Good day. As the title sais, i am trying to extract pixel colors from images, in Python 3. I know that for python 2.x, PIL (Python image library) can do that, via Image > getpixel((x,y)). It returns the colors as a list with 3 parameters, Red, Green and Blue. This is exactly what i want. Now, the