ImageMagick Issue

Facundo Batista facundo at taniquetil.com.ar
Thu May 31 08:23:44 EDT 2007


Sick Monkey wrote:

> When I run the following command:
> ozdon at SickCodeMonkey david.huggins]# identify -format %w
> '/someDIR/images/david.huggins/100_0264.JPG'

>From Python interpreter:

>>> cmd = "identify -format %w test.jpg"
>>> p = subprocess.Popen(cmd.split(), stdout=subprocess.PIPE, stderr=subprocess.STDOUT)
>>> t = p.stdout.read()
>>> p.stdout.close()
>>> t
'50\n'
>>> 

>From command line:

facundo at expiron:~$ identify -format %w test.jpg
50
facundo at expiron:~$ 

Regards,

-- 
.   Facundo
.
Blog: http://www.taniquetil.com.ar/plog/
PyAr: http://www.python.org/ar/





More information about the Python-list mailing list