from PIL import Image im = Image.open('kubacaputa.jpg') im.save('caputa.png')