Skip to main content

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

MIT

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

texttoimage-0.0.2.tar.gz (3.8 kB view details)

Uploaded Source

Built Distribution

texttoimage-0.0.2-py3-none-any.whl (4.6 kB view details)

Uploaded Python 3

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

Hashes for texttoimage-0.0.2.tar.gz
Algorithm Hash digest
SHA256 546c0e7ed64d72b0fe9bcf178abecb92401bfc360366ba7905184ec6f06dc6cd
MD5 f8566e63e7afad331d5316808ccfc68d
BLAKE2b-256 f014d62495e3295bfb4d3bf284596e5a9b7d2b8960a058629d488487df804725

See more details on using hashes here.

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

Hashes for texttoimage-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 42a723f6c9d7d1bc0dec57430399fa4c8a68d747133f8865bc6ac8f04137b7c2
MD5 07c097b1774233af3096aae830393088
BLAKE2b-256 40acee6fd7bfaa59d97a6f35fd4658afde79c0d64358e8025322d34a872297cf

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page