txt2png.py - most useless thingy ever

txt2png.py

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.

Examples

Here is the phrase "Hello World!" encoded.

and here is a JPG of my family.

Downloads

FileSizeLast Modified
family.jpg.png4.59 kbFri May 20 12:20:43 2005
helloworld.png0.15 kbFri May 20 12:13:14 2005
helloworld.txt0.01 kbFri May 20 12:13:03 2005
txt2png.py-v1.tar.gz2.42 kbFri May 20 12:12:30 2005