DataToPixel/README.md

12 lines
746 B
Markdown
Raw Permalink Normal View History

2018-03-25 19:16:11 +00:00
# DataToPixel
DataToPixel is a Python script that can store files as PNG pixelmaps of ASCII values, as well as a script to convert the images back into their original format.
DataToPixel goes through every character in a file, and stores its numeric ASCII value as a pixel value in the converted image, which is automatically saved as a PNG. The grayscale script encodes one ASCII character per pixel, where the RGB script encodes three per pixel: one in each color channel of each pixel.
2018-03-25 19:25:48 +00:00
## Example
2018-03-25 19:26:33 +00:00
Here's a lossless conversion of a PDF of Plato's Republic into a PNG pixelmap.
2018-03-25 19:25:48 +00:00
![Plato's Republic](https://github.com/skyestevenson/DataToPixel/blob/master/Plato_Republic_PDF.png?raw=true)
2018-03-25 19:16:11 +00:00
## Dependencies
Requires Python Imaging Library (PIL)