Texttoimage is a Python library for converting text to a transparent image.
Project description
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
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 Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file texttoimage-0.0.2.tar.gz.
File metadata
- Download URL: texttoimage-0.0.2.tar.gz
- Upload date:
- Size: 3.8 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
546c0e7ed64d72b0fe9bcf178abecb92401bfc360366ba7905184ec6f06dc6cd
|
|
| MD5 |
f8566e63e7afad331d5316808ccfc68d
|
|
| BLAKE2b-256 |
f014d62495e3295bfb4d3bf284596e5a9b7d2b8960a058629d488487df804725
|
File details
Details for the file texttoimage-0.0.2-py3-none-any.whl.
File metadata
- Download URL: texttoimage-0.0.2-py3-none-any.whl
- Upload date:
- Size: 4.6 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
42a723f6c9d7d1bc0dec57430399fa4c8a68d747133f8865bc6ac8f04137b7c2
|
|
| MD5 |
07c097b1774233af3096aae830393088
|
|
| BLAKE2b-256 |
40acee6fd7bfaa59d97a6f35fd4658afde79c0d64358e8025322d34a872297cf
|