Resizing myimage.png to 300x300 pixels and save it as resized.png:
myimage.png
resized.png
from pymaging import Image img = Image.open_from_path('myimage.png') img = img.resize(300, 300) img.save('resized.png')