I need to convert PNG images to JPG..can python help

Janko Hauser jhauser at ifm.uni-kiel.de
Wed Apr 18 18:13:56 EDT 2001


"Chris Richard Adams" <chrisa at ASPATECH.COM.BR> writes:

> os.system(" convert FILE1 FILE2 ") - yet FILE1 and FILE2 are string
> variables in my script.
> 

>>> a=['file1','file2','file3']
>>> blank = ' '
>>> blank.join(a)
'file1 file2 file3'

so this would be 

>>> os.system(" convert " + blank.join(list))

HTH,
__Janko



More information about the Python-list mailing list