A small tool to generate text as gif, animation
Project description
# text-to-gif
AKA t2g or text-to-gif-cli on pypi
Well, I didn’t find a python lib to process the text as gif.
So I developed this.
It can help me to create gif with code execution result if I don’t have change to upload the live-running video.
t2g(text-to-gif) 支持开发者把文本转化为gif进行动态播放。
学委写了很多文章都是贴静态图的,今年改进一下,发现市场没有这样的。所以用python写了一个小工具。
支持把 文本/代码 转化为gif 动态展示。
Powered by [pypi-seed](https://pypi.org/project/pypi-seed/)
# Installation / 安装
Get t2g by pip (通过PIP工具来安装text-to-gif) `bash pip install text-to-gif `
Print the usage
`bash t2g -h `
![SoRunItLikeThis](usage_doc.gif)
# Use text-to-gif as CLI / 命令行使用
We can call the cli ‘t2g’ or ‘text-to-gif’ or ‘ttg’: 调用下面两个命令行即可。
`bash t2g -p /Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt -d ./blog.gif -f 5 `
`bash ttg -p /Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt -d ./blog.gif -f 5 `
`bash text2gif -p /Users/mac/PycharmProjects/hello/xuewei_pypi_blog.txt -d ./blog.gif -f 5 `
The above command will generate below gif:
![My Blog Gif Generated by t2g](blog.gif)
# More Info Author levin
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distributions
Built Distribution
Hashes for text_to_gif-0.0.4a0-py2.py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 27b7c9282d726fe5706fdcd9ce5e8a1f88682d49967a46acf216865c6e009d10 |
|
MD5 | 5dcfe19c6fd129da85380fff96099a0c |
|
BLAKE2b-256 | 859fa1ea6ef2b15dce21a2a6bd3df642a922e399a70daa78c5cb36df8eae54cf |