這是一個簡單的 Python 腳本,可以把文字轉成 slack 格式的 gif,解決你需要開好幾個線上服務一直轉換的問題。
做出師表 gif 只需要一瞬間!
This is a simple Python script that can convert text into gif in slack format, which solves the problem that you need to open several online services and keep converting.
在我的 Mac 上測試 ok!
Test on MacBook ok!
Download app.zip from Releases.
./app -t "臣亮言:先帝創業未半,而中道崩殂。今天下三分,益州疲弊,此誠危急存亡之秋也。"
or run python script.
python3 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 app.py -t "臣亮言:先帝創業未半,而中道崩殂。今天下三分,益州疲弊,此 誠危急存亡之秋也。"
python3 app.py -t "臣亮言:先帝創業未半,而中道崩殂。今天下三分,益州疲弊,此 誠危急存亡之秋也。" -f 1 -d 500
python3 app.py -t "臣亮言:先帝創業未半,而中道崩殂。今天下三分,益州疲弊,此 誠危急存亡之秋也。" -d 30
sh make.sh