Skip to content

Instantly share code, notes, and snippets.

@KenMacD
Created October 9, 2012 19:00
Show Gist options
  • Save KenMacD/3860728 to your computer and use it in GitHub Desktop.
Save KenMacD/3860728 to your computer and use it in GitHub Desktop.
Convert SARVAM image to binary
#!/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