Re: [Image-SIG] BUG: convert to greyscale errors

2012-03-27 Thread Oliver Tonnhofer
Hi, On 21.03.2012, at 01:33, David Austin wrote: > I've found an incorrect dependency upon neighbouring pixels in conversion to > greyscale. Running this simple script (against attached images): > > import Image > im1 = Image.open('a.png') > im2 = Image.open('b.png') > pt = (301, 72) > print "B

[Image-SIG] PIL on Python 2.7?

2012-03-27 Thread B.Canatan
 Hi all, Will PIL work on Python 2.7 (on a Linux machine)? Sincerely, Baris ___ Image-SIG maillist - Image-SIG@python.org http://mail.python.org/mailman/listinfo/image-sig

Re: [Image-SIG] [Python-porting] Help for to do a script

2012-03-27 Thread Lennart Regebro
This mailing list is about porting from Python 2 to Python 3. For help with specific programming errors I recommend stackoverflow.com. ps. the error you made is probably on the row before On Fri, Mar 16, 2012 at 19:52, Boris Vladimir Comi wrote: > Hello, I am writing to request your help in the

Re: [Image-SIG] Help for to do a script

2012-03-27 Thread Alec Bennett
There's a lot wrong with it. I don't have the modules so I can't test, but you need to chnage these two lines: if (data[0][i][j] > 199.5 and (data[0][i][j] < 200.5 count = count + 1; To something like: if data[0][i][j] > 199.5 and data[0][i][j] < 20

Re: [Image-SIG] [Tutor] Help for to do a script

2012-03-27 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 2:58 PM, Joel Goldstick wrote: > On Fri, Mar 16, 2012 at 2:52 PM, Boris Vladimir Comi > wrote: >> Hello, I am writing to request your help in the realization of a script. I >> am new to this and I'm just learning the wonderful world of python and this >> has made me a litt

Re: [Image-SIG] [Tutor] Help for to do a script

2012-03-27 Thread Joel Goldstick
On Fri, Mar 16, 2012 at 2:52 PM, Boris Vladimir Comi wrote: > Hello, I am writing to request your help in the realization of a script. I > am new to this and I'm just learning the wonderful world of python and this > has made me a little difficult. > > Briefly I commented what I intend to do: > >

Re: [Image-SIG] Unable to install Pil in windows7

2012-03-27 Thread Edward Cannon
Do you have a 64 bit Python and 32 bit PIL? That can be a problem. On Mar 14, 2012, at 8:35 AM, praveen krishna wrote: > Hi, > I tried to install pil in windows but it is not getting installed and > generating following errors which are attached to this mailing list .I have > installed Py

[Image-SIG] GIF bug

2012-03-27 Thread Leo Barnes
Hi! I have found a bug in how PIL handles animated GIFs. The GIF in question contains several frames, where each new frame only overwrites parts of the previous frame. Unless I explicitly ask PIL to load/show each frame, PIL completely skips previous frames which means that the extracted image wil