A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from http://mail.python.org/pipermail/python-list/2001-April/094080.html below:

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

I need to convert PNG images to JPG..can python help I need to convert PNG images to JPG..can python helpJanko 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

RetroSearch is an open source project built by @garambo | Open a GitHub Issue

Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo

HTML: 3.2 | Encoding: UTF-8 | Version: 0.7.4