file-visualisation/visualize
2019-05-04 22:54:23 +00:00
..
examples Add visualize examples 2019-05-04 22:49:04 +00:00
.gitignore Plan first experiment 2019-05-04 14:39:00 +00:00
README.md Fix typos and add info 2019-05-04 22:54:23 +00:00
visualize.py Clean up and speed up 2019-05-04 17:52:16 +00:00

Visualize

The idea of this experiment is to visualize a file by converting its bytes to pixels. This process should be fully reversible (a script for another day :P).

It uses the pypng package, so make sure to install that if you want to try this script out yourself.

Examples

The green pixels are just background pixels, not a part of the file.

Random bytes from /dev/urandom: random bytes

A short hello world program written in C and compiled by gcc: hello world

The source code of the script: visualize

The source code of the script, with correct line lengths: visualize with correct line lengths