a python tool to convert the text into a image.
Project description
txt2img is a python tool to convert the text into a image.
1. Introduction
Normally people read the text in the .txt file. Sometimes there are needs for people to render the text into an image, for example you don’t want the text being copied, or you’d like to render the ascii art with colors, etc.
2. how to use it
After install, you can convert a text to a picture easily:
txt2img input.txt output.png
After install, you can also embed the asciiart directly into a html or pdf document with my developed script: sphinxcontrib-cmd2img, for examples:
.. cmd2img:: txt2img :caption: a flower .· .·. [1;35m/╲ /|[0m ·[1;35m│ \ ╱ |[0m [1;35m\-.___ / \ \/ / /[0m [1;35m\ __ ╲ [1;33m.,.[1;35m| ╱__[0m [1;35m╱ 乁 [1;33m'\|)[1;35m╱ ̄ ╲[0m [1;35m-<`︶╲__╱ [1;33m︶[1;35m╲ ╲ \[0m [35m ̄ ̄ / / ╱﹀乀 \│[0m [1;35m╲ ' /[1;30m╲ ·╲/[0m [1;35m\| / [1;30m\ ; `[0m [1;35m\/ [1;30m\ ·,[0m .----/[1;35m ′ [1;30m︳ ·__,[0m
More and more features are in develop.
5. CHANGLOG
1.0.0 Initial upload;
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
File details
Details for the file txt2img-1.0.0.tar.gz
.
File metadata
- Download URL: txt2img-1.0.0.tar.gz
- Upload date:
- Size: 4.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/3.2.0 pkginfo/1.5.0.1 requests/2.24.0 setuptools/46.4.0 requests-toolbelt/0.9.1 tqdm/4.47.0 CPython/3.6.10
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | f313db8d809ea01f045a8b26a6e3e4fa136ac2f6f773c1ce844806100d17be10 |
|
MD5 | 9f9e260c971b8d447f1a583eb4a09eb8 |
|
BLAKE2b-256 | 70e695c6af1f943d7b1c69840e54677c79647506e1d94ce3b1e64cbf89e87f02 |