Skip to content

Commit cc73f19

Browse files
committed
Merge pull request Show-Me-the-Code#30 from ailurus1991/solving
added 0005 and 0006
2 parents 99a921d + ea2e30f commit cc73f19

File tree

18 files changed

+749
-1
lines changed

18 files changed

+749
-1
lines changed

ailurus1991/.DS_Store

0 Bytes
Binary file not shown.

ailurus1991/.idea/scopes/scope_settings.xml

Lines changed: 5 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ailurus1991/.idea/workspace.xml

Lines changed: 638 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

ailurus1991/0000/main.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
#!/usr/bin/env python
12
# -*- coding: utf-8 -*-
23
__author__ = 'jinyang'
34

ailurus1991/0001/main.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
# -*- coding = utf-8 -*-
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
23
__author__ = 'jinyang'
34

45
from random import Random

ailurus1991/0005/.DS_Store

6 KB
Binary file not shown.

ailurus1991/0005/main.py

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
#!/usr/bin/env python
2+
# -*- coding: utf-8 -*-
3+
4+
__author__ = 'jinyang'
5+
6+
from PIL import Image
7+
import glob
8+
9+
def reSize(dirPath, sizeX = 100, sizeY = 100):
10+
for file in glob.glob(dirPath + '*.jpg'):
11+
print file
12+
ori = Image.open(file)
13+
modi = ori.resize((sizeX, sizeY))
14+
#modi.save(os.path.splitext(file)[0] + '_modifid' + '.jpg')
15+
16+
if __name__ == '__main__':
17+
reSize('pics/', 300, 200)

ailurus1991/0005/pics/.DS_Store

6 KB
Binary file not shown.

ailurus1991/0005/pics/513.pic.jpg

43.8 KB
Loading
5.58 MB
Loading

0 commit comments

Comments
 (0)