Nov-10-2018, 10:54 PM
One of the available packages may already do this for you, see: https://pypi.org/search/?q=image+thumbnails
if not, it's simple to save a file:
if not, it's simple to save a file:
def save_image(image, filename): with open(filename, 'wb') as fp: fp.write(image)