You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
I changed how the status of the conversion appears, and it now shows you how much the data's been compressed once it's been converted to a PNG file.
|5 years ago|
|DataToPixel_Grayscale.py||5 years ago|
|DataToPixel_RGB.py||5 years ago|
|PixelToData_Grayscale.py||5 years ago|
|PixelToData_RGB.py||5 years ago|
|Plato_Republic_PDF.png||5 years ago|
|README.md||5 years ago|
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.
Here's a lossless conversion of a PDF of Plato's Republic into a PNG pixelmap.
Requires Python Imaging Library (PIL)