jcppkkk / text_to_slack_gif

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

text to slack gif

這是一個簡單的 Python 腳本,可以把文字轉成 slack 格式的 gif,解決你需要開好幾個線上服務一直轉換的問題。
做出師表 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!

在我的 Mac 上測試 ok!
Test on my MacBook ok!

Basic usage

Download app.zip from Releases.

./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

Build

sh make.sh

About

License:MIT License


Languages

Language:Python 91.5%Language:Dockerfile 7.6%Language:Shell 0.9%