Created
July 22, 2013 13:31
-
-
Save ikautak/6053815 to your computer and use it in GitHub Desktop.
gray scale
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
#!/usr/bin/env python | |
import sys | |
import Image | |
def conv(f): | |
Image.open(f).convert('LA').save('output.png') | |
if __name__=='__main__': | |
if len(sys.argv) > 1: | |
conv(sys.argv[1]) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment