diff --git a/TextPixel/README.md b/TextPixel/README.md index 70202bd..9e46a48 100644 --- a/TextPixel/README.md +++ b/TextPixel/README.md @@ -5,11 +5,21 @@ Encode / Decode between strings and PNG images. Can be imported or used on the c One channel is used to store the character, and the other two are randomized, so the output looks different every time. +When used from the commandline, encoding and decoding looks like this: + + > textpixel.py encode text filename + > textpixel.py decode filename + +In the commandline, the parameter `text` can be the filename of a .txt file, and its contents will become the text. This is not the case for python usage. + python example: encoded_string = textpixel.encode_string('Wow, look!') textpixel.write_pixels(encoded_string, 'wowlook.png') + decoded_string = textpixel.decode_image('wowlook.png') + print(decoded_string) + commandline example: diff --git a/TextPixel/example.png b/TextPixel/example.png deleted file mode 100644 index 11ca5c9..0000000 Binary files a/TextPixel/example.png and /dev/null differ diff --git a/TextPixel/wowlook.png b/TextPixel/wowlook.png new file mode 100644 index 0000000..b440421 Binary files /dev/null and b/TextPixel/wowlook.png differ