Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/python
- import os
- import sys
- def new_name(file):
- os.path.splitext(file)
- return '.'.join([os.path.splitext(file)[0],'png'])
- files = sys.argv[1:]
- for file in files:
- os.system('convert %s %s' % (file, new_name(file)))
Advertisement
Add Comment
Please, Sign In to add comment