Created
October 9, 2012 19:00
-
-
Save KenMacD/3860728 to your computer and use it in GitHub Desktop.
Convert SARVAM image to binary
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 Image | |
from sys import stdin, stdout | |
from StringIO import StringIO | |
for value in list(Image.open(StringIO(stdin.read())).getdata()): | |
stdout.write(chr(value)) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment