Text to image bash script with multiple highly customizable options for
obfuscation.
Copies images directly to the clipboard.
It could be used as captcha.
Some examples:
This scripts has the following dependencies:
imagemagick
xclip
Which can be easily installed with these commands:
- Ubuntu/Debian:
sudo apt install imagemagick xclip
- Arch:
pacman -S imagemagick xclip
There are some hardcoded configs you might want to change, check the script source code if you're curious.
The script installation is trivial: just clone this whole repository or copy the script wherever you prefer.
cd /opt
git clone https://github.com/hydrastro/tti.git
For invoking the script more easily you can set up a bash alias for it:
alias tti='/opt/tti/tti.sh'
Or alternatively you can link it to /usr/local/bin
sudo ln -s /opt/tti/tti.sh /usr/local/bin/tti
There are two ways you can run this script:
- By pipelining some text directly into the script:
cat something.txt | tti
- By invoking the script directly and typing the text in it.
End your data with a dot.
[user@machine ~]$ tti your text some other text .
(Wanna type a dot? Ehhh... no)
Feel free to contribute, pull requests are always welcome.
Please reveiw and clean your code with shellcheck
before pushing it.