{ "info": { "author": "Yoong Kang Lim", "author_email": "yoongkang.lim@gmail.com", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# TxtImg\n\nA library to easily create text-based images (e.g. images that primarily contain text).\n\nThis is just a thin layer on top of Pillow.\n\n## Installation\n\nThis is compatible with Python 3.6 and above.\n\nRun the following command to install:\n\n```\n$ pip install txtimg\n```\n\n## Example\n\n```python\nfrom txtimg import TxtImg\n\ntext = \"\"\"\nWhat did Sushi A say to Sushi B?\n\nWhat's up B? (WASABI)\n\"\"\"\n\nt = TxtImg()\nimg = t.generate_from_text(text)\nimg.save(\"wasabi.png\")\n```\n\n## Configuration\n\nYou can specify parameters to the `TxtImg` constructor:\n\n\n* font - Font used for your text. This is a PIL ImageFont object\n* base_img - You can specify a base image to use, rather than the default white background. This is a PIL Image object.\n* horizontal_margin - Horizontal margin in pixels\n* vertical_margin - Vertical margin in pixels\n* chars_per_row - Number of characters per row\n* txt_color - A tuple representing the RGB values, e.g. (255, 0, 0) for red.\n\n\n\n\n", "description_content_type": "text/markdown", "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/yoongkang/txtimg", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "txtimg", "package_url": "https://pypi.org/project/txtimg/", "platform": "", "project_url": "https://pypi.org/project/txtimg/", "project_urls": { "Homepage": "https://github.com/yoongkang/txtimg" }, "release_url": "https://pypi.org/project/txtimg/0.0.2/", "requires_dist": [ "Pillow (<6.2)" ], "requires_python": ">=3.6", "summary": "A library to easily create text-based images (e.g. images that primarily contain text).", "version": "0.0.2" }, "last_serial": 5854583, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "1a698d54f112522c4aa979406bb60b4b", "sha256": "c60db85d5c2fe5e9d91f9e49af737016a8de22763155f9b1919156917a3cb56e" }, "downloads": -1, "filename": "txtimg-0.0.1-py3-none-any.whl", "has_sig": false, "md5_digest": "1a698d54f112522c4aa979406bb60b4b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 93626, "upload_time": "2019-09-17T10:49:58", "url": "https://files.pythonhosted.org/packages/e6/35/3a5bfd63ccaba9b3674baed2dc22ded9922abdd9a2f460ac73b0510d0045/txtimg-0.0.1-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "f3685a67bc2cbb11b2aa4d6de19c1d91", "sha256": "aa3f5285c64a49ff463e5408f846d78658a2b49eac9e66fcaa182848b5c36cc5" }, "downloads": -1, "filename": "txtimg-0.0.1.tar.gz", "has_sig": false, "md5_digest": "f3685a67bc2cbb11b2aa4d6de19c1d91", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 92633, "upload_time": "2019-09-17T10:50:02", "url": "https://files.pythonhosted.org/packages/48/15/cc5a863c297b1f2ef2d495805082728746814caf7541447d29dad4a931f5/txtimg-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "754fb0730cfcebfcb7de73b2026ed56b", "sha256": "1ca18df8439939997b6c7ad4e88cc6a2e3e75d3cb866789b4fdb1025c62c130a" }, "downloads": -1, "filename": "txtimg-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "754fb0730cfcebfcb7de73b2026ed56b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 94103, "upload_time": "2019-09-19T07:47:15", "url": "https://files.pythonhosted.org/packages/52/c6/3009bdd5c54b585b3fe9249c484c151cd1267dbb21dce718de4001c77482/txtimg-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83ef35d16a6d0d3c3f62242845ae6a0d", "sha256": "7dead1d326cb408153be32046ddb8d8ee7992f7758dccc981161a0617944332a" }, "downloads": -1, "filename": "txtimg-0.0.2.tar.gz", "has_sig": false, "md5_digest": "83ef35d16a6d0d3c3f62242845ae6a0d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 93881, "upload_time": "2019-09-19T07:47:17", "url": "https://files.pythonhosted.org/packages/a6/40/5e8b31c0ec0a419292b1504d781bcb156737e540782eedf9366b032e8ca0/txtimg-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "754fb0730cfcebfcb7de73b2026ed56b", "sha256": "1ca18df8439939997b6c7ad4e88cc6a2e3e75d3cb866789b4fdb1025c62c130a" }, "downloads": -1, "filename": "txtimg-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "754fb0730cfcebfcb7de73b2026ed56b", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 94103, "upload_time": "2019-09-19T07:47:15", "url": "https://files.pythonhosted.org/packages/52/c6/3009bdd5c54b585b3fe9249c484c151cd1267dbb21dce718de4001c77482/txtimg-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "83ef35d16a6d0d3c3f62242845ae6a0d", "sha256": "7dead1d326cb408153be32046ddb8d8ee7992f7758dccc981161a0617944332a" }, "downloads": -1, "filename": "txtimg-0.0.2.tar.gz", "has_sig": false, "md5_digest": "83ef35d16a6d0d3c3f62242845ae6a0d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 93881, "upload_time": "2019-09-19T07:47:17", "url": "https://files.pythonhosted.org/packages/a6/40/5e8b31c0ec0a419292b1504d781bcb156737e540782eedf9366b032e8ca0/txtimg-0.0.2.tar.gz" } ] }