import os

for f in os.listdir("trees"):
	os.system('convert '+"trees/"+f+' '+"trees/"+f.split('.')[0]+".png")

b9cc874fb1023943cfb3812e7399772121a2ee4f
<mask token>

<mask token>
for f in os.listdir('trees'):
    os.system('convert ' + 'trees/' + f + ' ' + 'trees/' + f.split('.')[0] +
        '.png')

import os
for f in os.listdir('trees'):
    os.system('convert ' + 'trees/' + f + ' ' + 'trees/' + f.split('.')[0] +
        '.png')

import os

for f in os.listdir("trees"):
	os.system('convert '+"trees/"+f+' '+"trees/"+f.split('.')[0]+".png")
