Re: Using os.popen3() to get binary data

2007-04-06 Thread MRAB
On Apr 6, 6:09 pm, Dennis Lee Bieber <[EMAIL PROTECTED]> wrote: > On 6 Apr 2007 04:02:52 -0700, "Christoph Krammer" > <[EMAIL PROTECTED]> declaimed the following in comp.lang.python: > > > Hello everybody, > > > I need to get the different frames from a GIF image in my python > > script and want to

Re: Using os.popen3() to get binary data

2007-04-06 Thread Christoph Krammer
Just got the solution... After sending the image data with "si.write(image)", I have to close the pipe to tell the program to convert the image with "si.close()". Now everything works fine. Christoph -- http://mail.python.org/mailman/listinfo/python-list

Re: Using os.popen3() to get binary data

2007-04-06 Thread Thomas Krüger
Christoph Krammer schrieb: > for image in images: > if (image[0:3] == 'GIF'): > (si, so, se) = os.popen3('giftopnm -image=all', 'b') > si.write(image) > frame = so.readlines() > > But with this code the script just hangs. When I interrupt the script, > I get the following er

Using os.popen3() to get binary data

2007-04-06 Thread Christoph Krammer
Hello everybody, I need to get the different frames from a GIF image in my python script and want to use the giftopnm program from netpbm to get the frames and directly convert them to pnm files. I tried to use the following code: for image in images: if (image[0:3] == 'GIF'): (si, so,