23 lines
732 B
Markdown
23 lines
732 B
Markdown
# 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`:
|
|

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

|
|
|
|
The source code of the script:
|
|

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

|