Created
October 17, 2015 13:49
-
-
Save ooooak/a75c3611663932be92f1 to your computer and use it in GitHub Desktop.
resize image in python [linux only]
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import os | |
import glob | |
path = '~/send/*.JPG' | |
files = glob.glob(path) | |
for f in files: | |
os.system('convert -resize 24% ' + f + ' ' + f.replace('/send/', '/send/new/')) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment