Skip to content

Commit a229927

Browse files
authored
Create resizeimage.py
1 parent a12a623 commit a229927

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

resizeimage.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
from PIL import Image
2+
img = Image.open("/home/dasta/Downloads/f2017441_a153_437a_9f0f_0e4dbd49ae56.jpg")
3+
img = img.resize((int(3456/2), int(5184/2)), Image.ANTIALIAS)
4+
img.save('resized.jpg')
5+
img.show()

0 commit comments

Comments
 (0)