Skip to content

hydrastro/tti

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

text to image

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:
sample image 1 sample image 2

Dependencies

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

Configuration

There are some hardcoded configs you might want to change, check the script source code if you're curious.

Installation

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

Usage

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)

Contributing

Feel free to contribute, pull requests are always welcome.
Please reveiw and clean your code with shellcheck before pushing it.