Truth1987 / text_to_slack_gif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

text to slack gif

This is a simple Python script that can convert text to gif in slack format.
This script solves the problem that you need to use several online services to do this.
And the more important thing is it saves your time!

Basic usage

Run on GitHub Actions

  1. Fork this repository.
  2. Go to the Actions tab and enable workflows.
  3. Select build gif workflow.
  4. Click Run workflow button.
  5. Input the text you want to convert.
  6. Download the gif from the Artifacts.

Run on your local machine

  1. Clone this repository.
  2. Install the required packages.
  3. Run the script.
./app -t "臣亮言..."

or run python script.

python3 app.py -t "臣亮言..."

Advanced usage

However, you can get different type gif by adjusting frame and delay.
The default values for frame and delay are 5 and 100 respectively.

python3 app.py -t "臣亮言..."

image

python3 app.py -f 1 -d 500 -t "臣亮言..."

image

python3 app.py -d 30 -t "臣亮言..."

image

Font color

Add -c <HTML/CSS Color Name> or --color=<HTML/CSS Color Name> argument to change font color; type=str. Default is black.

python3 app.py -c blueviolet -t "臣亮言..."

image

Width of image

Add -w <int> or --width=<int> argument to change width of image; type=int. Default is 1.

python3 app.py -c blueviolet -w 5 -t "臣亮言..."

image

About

License:MIT License


Languages

Language:Python 100.0%