From 3845147531ebcea18ab23a87125bb580687fe249 Mon Sep 17 00:00:00 2001 From: Voussoir Date: Sun, 17 May 2015 23:52:56 -0700 Subject: [PATCH] else textpixel --- TextPixel/README.md | 10 ++++++++++ TextPixel/example.png | Bin 95 -> 0 bytes TextPixel/wowlook.png | Bin 0 -> 107 bytes 3 files changed, 10 insertions(+) delete mode 100644 TextPixel/example.png create mode 100644 TextPixel/wowlook.png 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 11ca5c9d4e7b3632477dbb7f7d2a648c32c76578..0000000000000000000000000000000000000000 GIT binary patch literal 0 HcmV?d00001 literal 95 zcmeAS@N?(olHy`uVBq!ia0vp^>_E)O!3HFSxVM}GQfi(qjv*Cuk`p}s{{KJU_2~cZ u&Nu%hi?;tQ&(r)d|L}+Z|LfbX{AYNjERe_Zu;nLE2ZN`ppUXO@geCwr;3Dt< diff --git a/TextPixel/wowlook.png b/TextPixel/wowlook.png new file mode 100644 index 0000000000000000000000000000000000000000..b4404212e14be345a4dd62e1f38630b777646ecf GIT binary patch literal 107 zcmeAS@N?(olHy`uVBq!ia0vp^AT}ch8<2ed)xHi$8F{)mhE&W+t~nv_FTT&QX<<_$ z)8Q~~w>E8k5y^kQ@1zSP|2r#iTH)-6;`>r>y~BFq2) literal 0 HcmV?d00001