| jclement.ca · txt2png.py - most useless thingy ever | [ Home · Photoblog (Flickr) · Software · Twitter · Search Site ] |
| txt2png.py - most useless thingy ever | [ Home · Photoblog (Flickr) · Albums · Photography · Woodworking · Software · Search Site ] |
txt2png.py is a Python module that takes an arbitrary blob of binary data and encodes it as pixel data within an image. The resulting image will most likely resemble random noise. The python script includes code to encode data to an image and to decode it afterwards. It's all pretty self explainatory. A few little notes:
Play with it if you want. The code is sort of documented and it has a basic CLI on it. It does work for the most part.
Here is the phrase "Hello World!" encoded.
and here is a JPG of my family.
| File | Size | Last Modified |
|---|---|---|
| family.jpg.png | 4.59 kb | Fri May 20 12:20:43 2005 |
| helloworld.png | 0.15 kb | Fri May 20 12:13:14 2005 |
| helloworld.txt | 0.01 kb | Fri May 20 12:13:03 2005 |
| txt2png.py-v1.tar.gz | 2.42 kb | Fri May 20 12:12:30 2005 |