Skip to content

Revolution1/s2p

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 

Repository files navigation

s2p

convert text to png image

usage: s2p.py [-h] [-o OUTPUT] [-d] [-v] input

Convert string to png image, for lovely Cisy. <revol.cai@gmail.com>

positional arguments:
  input          input file's filename, '-' means read from stdin

optional arguments:
  -h, --help     show this help message and exit
  -o OUTPUT      output filename (default: stdout), '-' means output to stdout
  -d             convert png to string
  -v, --version  show program's version number and exit

Quick Start

# encode
echo aaa|./s2p.py - >/tmp/a.png

# decode

cat /tmp/a.png|./s2p.py -d -
aaa
        %

TODO

  • Smarter padding
  • Support Unicode
  • Inject into other img

About

convert text to png image

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages