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
Metadata
Release files for txt2img 1.0.4
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| txt2img-1.0.4.tar.gz | 5.5 kB | Without provenance | Details for txt2img-1.0.4.tar.gz |
Release files / txt2img-1.0.4.tar.gz
| Download URL | txt2img-1.0.4.tar.gz |
|---|---|
| Size | 5.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
d579541de7c70d7d21e66227b8164d29c03f068560f6a0c22d6b527c88f556ca
|
|
BLAKE2b-256 checksum How to use checksums |
2735cedc084b62ebe80736435d69ec58364c477099a043e871b6c3e4d08b3a41
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is 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
|
Security for txt2img 1.0.4
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.