Re: Calling ImageMagick's convert

2008-12-22 Thread Андрей Парамонов
2008/12/22 Chris Rebert : > I think this needs to be: > > subprocess.call(['convert', 'in.png', '-resize', '640x480', 'out.png']) > > Otherwise, it gets '-resize 640x480' as a single escaped option when > it's really 2 options, which is the error message you're getting. > You have to split the argu

Re: Calling ImageMagick's convert

2008-12-22 Thread Chris Rebert
On Mon, Dec 22, 2008 at 12:15 AM, cmr.p...@gmail.com wrote: > Hello group! > > I'm a Python beginner. I'm trying to call ImageMagick's convert > program from my code. > My OS is Debian testing, and my version of Python is 2.5. > > I've just stumbled upon a problem: > > (1) subprocess.call('convert

Calling ImageMagick's convert

2008-12-22 Thread cmr.p...@gmail.com
Hello group! I'm a Python beginner. I'm trying to call ImageMagick's convert program from my code. My OS is Debian testing, and my version of Python is 2.5. I've just stumbled upon a problem: (1) subprocess.call('convert in.png -resize 640x480 out.png', shell = True) works, but none of the foll