Skip to main content

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

MIT

Metadata

Release files for texttoimage-Jeffrey-Hu 0.0.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for texttoimage-Jeffrey-Hu 0.0.1
File Size Uploaded
texttoimage-Jeffrey-Hu-0.0.1.tar.gz 3.8 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for texttoimage-Jeffrey-Hu 0.0.1
File Interpreter ABI Platform
texttoimage_Jeffrey_Hu-0.0.1-py3-none-any.whl Python 3 none any Details

Total release size: 8.5 kB

Release files / texttoimage-Jeffrey-Hu-0.0.1.tar.gz

Download URL texttoimage-Jeffrey-Hu-0.0.1.tar.gz
Size 3.8 kB
Tags Source
SHA-256 checksum
How to use checksums
938826c0d39ddc0e57f527ddea5c3d8504b55f616cb48b8800a9e4e202d8dc4f
BLAKE2b-256 checksum
How to use checksums
22bf6f23f7a7d063c8812d9b3be5cb166f1023dfc76c5ecb904fea668616e265
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_Jeffrey_Hu-0.0.1-py3-none-any.whl

Download URL texttoimage_Jeffrey_Hu-0.0.1-py3-none-any.whl
Size 4.7 kB
Tags Python 3
SHA-256 checksum
How to use checksums
eb1e69f1c5a6d6c5ce49b1ae410925651fa0df1d958b0c58391ff3891e9336e4
BLAKE2b-256 checksum
How to use checksums
62b1c32b4be645db92a1a5a23409dd1397b209393fd9c60bcb34521dfbfb094e
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 history Release notifications | RSS feed

This release

0.0.1 This release

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page