Skip to content

save()

Save the image to a file.

icon.save(filename)

Parameters

icon.save(filename, width=None, height=None)
Parameter Type Default Description
filename str required The file to write, ending in ".jpg" or ".png".
width int or float None The width of the saved image, in pixels. Defaults to the image's current width.
height int or float None The height of the saved image, in pixels. Defaults to the image's current height.