texttoimage


Nametexttoimage JSON
Version 0.0.2 PyPI version JSON
download
home_pagehttps://github.com/zhiwehu/texttoimage
SummaryTexttoimage is a Python library for converting text to a transparent image.
upload_time2020-06-30 15:11:50
maintainer
docs_urlNone
authorJeffrey Hu
requires_python>=3.6
license
keywords
VCS
bugtrack_url
requirements No requirements were recorded.
Travis-CI No Travis.
coveralls test coverage No coveralls.
            # Texttoimage

Texttoimage is a Python library for converting text to a transparent image.

## Installation

Use the package manager [pip](https://pip.pypa.io/en/stable/) to install texttoimage.

```bash
pip install texttoimage
```

## Usage

```python
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

![](hello.png)
![](test.png)

## 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](https://choosealicense.com/licenses/mit/)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/zhiwehu/texttoimage",
    "name": "texttoimage",
    "maintainer": "",
    "docs_url": null,
    "requires_python": ">=3.6",
    "maintainer_email": "",
    "keywords": "",
    "author": "Jeffrey Hu",
    "author_email": "zhiwehu@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/f0/14/d62495e3295bfb4d3bf284596e5a9b7d2b8960a058629d488487df804725/texttoimage-0.0.2.tar.gz",
    "platform": "",
    "description": "# Texttoimage\n\nTexttoimage is a Python library for converting text to a transparent image.\n\n## Installation\n\nUse the package manager [pip](https://pip.pypa.io/en/stable/) to install texttoimage.\n\n```bash\npip install texttoimage\n```\n\n## Usage\n\n```python\nimport texttoimage\n\ntexttoimage.convert('Hello World') # generate an image named \"helloworld.png\"\n\n# if you want to create a multiple line text image you can use `\\n` in your text\ntext = 'Hello World\\n This is a multiple line text'\n# It'll generate an image which the font size is 48 and color is red.\ntexttoimage.convert(text, image_file='test.png', font_size=100, color='red')\n```\n## Examples\n\n![](hello.png)\n![](test.png)\n\n## Contributing\nPull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.\n\nPlease make sure to update tests as appropriate.\n\n## License\n[MIT](https://choosealicense.com/licenses/mit/)\n\n",
    "bugtrack_url": null,
    "license": "",
    "summary": "Texttoimage is a Python library for converting text to a transparent image.",
    "version": "0.0.2",
    "split_keywords": [],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "md5": "07c097b1774233af3096aae830393088",
                "sha256": "42a723f6c9d7d1bc0dec57430399fa4c8a68d747133f8865bc6ac8f04137b7c2"
            },
            "downloads": -1,
            "filename": "texttoimage-0.0.2-py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "07c097b1774233af3096aae830393088",
            "packagetype": "bdist_wheel",
            "python_version": "py3",
            "requires_python": ">=3.6",
            "size": 4627,
            "upload_time": "2020-06-30T15:11:49",
            "upload_time_iso_8601": "2020-06-30T15:11:49.135591Z",
            "url": "https://files.pythonhosted.org/packages/40/ac/ee6fd7bfaa59d97a6f35fd4658afde79c0d64358e8025322d34a872297cf/texttoimage-0.0.2-py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "md5": "f8566e63e7afad331d5316808ccfc68d",
                "sha256": "546c0e7ed64d72b0fe9bcf178abecb92401bfc360366ba7905184ec6f06dc6cd"
            },
            "downloads": -1,
            "filename": "texttoimage-0.0.2.tar.gz",
            "has_sig": false,
            "md5_digest": "f8566e63e7afad331d5316808ccfc68d",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3.6",
            "size": 3838,
            "upload_time": "2020-06-30T15:11:50",
            "upload_time_iso_8601": "2020-06-30T15:11:50.472087Z",
            "url": "https://files.pythonhosted.org/packages/f0/14/d62495e3295bfb4d3bf284596e5a9b7d2b8960a058629d488487df804725/texttoimage-0.0.2.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2020-06-30 15:11:50",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "github_user": null,
    "github_project": "zhiwehu",
    "error": "Could not fetch GitHub repository",
    "lcname": "texttoimage"
}
        
Elapsed time: 0.13436s