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!
- Fork this repository.
- Go to the Actions tab and enable workflows.
- Select
build gif
workflow. - Click
Run workflow
button. - Input the text you want to convert.
- Download the gif from the Artifacts.
- Clone this repository.
- Install the required packages.
- Run the script.
python3 src/app.py -t "臣亮言..."
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 src/app.py -t "臣亮言..."
python3 src/app.py -f 1 -d 500 -t "臣亮言..."
python3 src/app.py -d 30 -t "臣亮言..."
Add --theme <dark/light>
argument to change the theme of the gif. Default is dark
.
dark
: Black background with white text.light
: White background with black text.
python3 src/app.py --theme light -t "臣亮言..."
Add -c <HTML/CSS Color Name>
or --color=<HTML/CSS Color Name>
argument to change font color; type=str. This will override the default color of the selected theme.
python3 src/app.py -c blueviolet -t "臣亮言..."
Add -w <int>
or --width=<int>
argument to change width of image; type=int. Default is 1.
python3 src/app.py -c blueviolet -w 5 -t "臣亮言..."