Skip to content

Commit d9edf0e

Browse files
author
ymc
committed
complete problem 0005
1 parent 393481f commit d9edf0e

3 files changed

Lines changed: 8 additions & 0 deletions

File tree

messyidea/0005/0005.py

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/usr/bin/env python
2+
# coding=utf-8
3+
4+
from PIL import Image
5+
6+
org = Image.open('./origin.jpg')
7+
org = org.resize((50,50), Image.ANTIALIAS)
8+
org.save('rst', 'jpeg')

messyidea/0005/origin.jpg

16.6 KB
Loading

messyidea/0005/rst

1.51 KB
Binary file not shown.

0 commit comments

Comments
 (0)