Texttoimage
Texttoimage is a Python library for converting text to a transparent image.
Installation
Use the package manager pip to install texttoimage.
pip install texttoimage
Usage
import texttoimage
texttoimage.convert('Hello World') # generate an image named "helloworld.png"
# if you want to create a multiple line text image you can use `\n` in your text
text = 'Hello World\n This is a multiple line text'
# It'll generate an image which the font size is 48 and color is red.
texttoimage.convert(text, image_file='test.png', font_size=100, color='red')
Examples
Contributing
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
License
Release files for texttoimage 0.0.2
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| texttoimage-0.0.2.tar.gz | 3.8 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| texttoimage-0.0.2-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 8.5 kB
Release files / texttoimage-0.0.2.tar.gz
| Download URL | texttoimage-0.0.2.tar.gz |
|---|---|
| Size | 3.8 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
546c0e7ed64d72b0fe9bcf178abecb92401bfc360366ba7905184ec6f06dc6cd
|
|
BLAKE2b-256 checksum How to use checksums |
f014d62495e3295bfb4d3bf284596e5a9b7d2b8960a058629d488487df804725
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|
Release files / texttoimage-0.0.2-py3-none-any.whl
| Download URL | texttoimage-0.0.2-py3-none-any.whl |
|---|---|
| Size | 4.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
42a723f6c9d7d1bc0dec57430399fa4c8a68d747133f8865bc6ac8f04137b7c2
|
|
BLAKE2b-256 checksum How to use checksums |
40acee6fd7bfaa59d97a6f35fd4658afde79c0d64358e8025322d34a872297cf
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/3.2.0 pkginfo/1.5.0.1 requests/2.23.0 setuptools/47.3.1 requests-toolbelt/0.9.1 tqdm/4.46.0 CPython/3.8.2
|