{ "info": { "author": "Abhishek Kapila", "author_email": "akapila011@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: End Users/Desktop", "Natural Language :: English", "Programming Language :: Python :: 3", "Topic :: Multimedia :: Graphics", "Topic :: Scientific/Engineering :: Visualization", "Topic :: Security :: Cryptography" ], "description": "Text To Image\n=============\n\nEasily convert your text to grayscale images and vice versa.\n\nWith this tool you can encode text or plain text files to a grayscale\nimage to be easily shared. Each pixel represents a single character\u2019s\ndecimal value. When decoding an image you can decode text straight to\nthe console or to a plain text file.\n\nImages use a PNG file extension. The image size will be automatically be\nset depending on the text length to be encoded.\n\nText should use a character encoding scheme using 8 bits or less until\nadditional functionality is added to support UTF-8 (16 bit). If a\ncharacter\u2019s decimal value is greater than the limit (see below) the it\nwill be divided by the limit and the new value used. When the character\nvalue equals the limit value the new value will be 1.\n\nThe limit value passed using either command line argument -l(\u2013limit)\nspecifies the decimal value limit for pixel values starting from 1. The\ndefault is 256 allowing for numbers from 0 to 255 (i.e. 8 bit pixels).\nIf the limit value is greater than 8 bits then the value will still be\nwrapped around since the output image is grayscale.\n\nRequirements\n''''''''''''\n\n- Python 3.x\n- Pillow (PIL fork)\n\nInstall\n-------\n\nYou can install text\\_to\\_image using pip or setup.py\n\n- Using pip\n\n .. code:: bash\n\n $> pip3 install text_to_image\n\n- Using setup.py. First navigative to the root directory where setup.py\n is located then run\n\n .. code:: bash\n\n $> python3 setup.py install\n\nHow to Use\n----------\n\nOnce installed you can either directly use the encode.py and decode.py\nfile or import and use the relevant functions.\n\n- Using the encode.py\n\n .. code:: bash\n\n $> python3 encode.py -t \"Hello World!\" image.png # encodes given text\n $> python3 encode.py -f my-text-file.txt image.png # encodes a text file\n $> python3 encode.py --help # for more information on arguments\n\n- Using decode.py\n\n .. code:: bash\n\n $> python3 decode.py image.png # decodes a given image\n $> python3 decode.py -f my-text-file.txt image.png # decodes image.png to the given text file\n $> python3 decode.py --help # for more information on arguments\n\n- Importing\n\n .. code:: python\n\n import text_to_image\n\n\t encoded_image_path = text_to_image.encode(\"Hello World!\", \"image.png\")\n\t encoded_image_path = text_to_image.encode_file(\"input_text_file.txt\", \"output_image.png\")\n\n\t decoded_text = text_to_image.decode(\"encoded_image.png\")\n\t decoded_file_path = text_to_image.decode_to_file(\"encoded_image.png\", \"output_text_file.txt\")\n\n\nTests\n~~~~~\n\nTo run tests, navigate to the root directory where setup.py is located\nand run\n\n.. code:: bash\n\n $> python3-m unittest discover tests -v\n\nAnother image example:\n\nTODO:\n^^^^^\n\n- Add custom image sizes.\n- Expand pixel value to allow for UTF-8 characters.", "description_content_type": null, "docs_url": null, "download_url": "", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "https://github.com/akapila011/Text-to-Image", "keywords": "Graphics Encoding Decoding Stenography", "license": "MIT", "maintainer": "", "maintainer_email": "", "name": "text-to-image", "package_url": "https://pypi.org/project/text-to-image/", "platform": "", "project_url": "https://pypi.org/project/text-to-image/", "project_urls": { "Homepage": "https://github.com/akapila011/Text-to-Image" }, "release_url": "https://pypi.org/project/text-to-image/0.0.5/", "requires_dist": null, "requires_python": ">=3", "summary": "Convert your text to a grayscale image and back.", "version": "0.0.5" }, "last_serial": 3283722, "releases": { "0.0.1": [ { "comment_text": "", "digests": { "md5": "fff8b756f0ec1a4111d7d45a37202b0c", "sha256": "8e3d3fb72959f9725489f59a6e48429bc8cb3c6f8a028e3b7fe7995669125da8" }, "downloads": -1, "filename": "text_to_image-0.0.1.tar.gz", "has_sig": false, "md5_digest": "fff8b756f0ec1a4111d7d45a37202b0c", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6519, "upload_time": "2017-10-27T12:34:22", "url": "https://files.pythonhosted.org/packages/3b/9b/4f4aa820ee245524b445880e332a027a3a3df7d1cc53e55c656b376cb427/text_to_image-0.0.1.tar.gz" } ], "0.0.2": [ { "comment_text": "", "digests": { "md5": "1e249ce72b35db6d36865bb6ea56eaa8", "sha256": "d2f3688ea410016d47a3fe20b98a4397236f8584084d7cfc4fce2a1c8c350280" }, "downloads": -1, "filename": "text_to_image-0.0.2.tar.gz", "has_sig": false, "md5_digest": "1e249ce72b35db6d36865bb6ea56eaa8", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 7403, "upload_time": "2017-10-27T13:06:38", "url": "https://files.pythonhosted.org/packages/87/28/894fd8a2eeac881ab3bc4e58f1cf7e60ade5da56c73a1c9d4e72a453189e/text_to_image-0.0.2.tar.gz" } ], "0.0.3": [ { "comment_text": "", "digests": { "md5": "0d1603dbe565a3d0da7fc895175cd763", "sha256": "b6870b18cbc1b2b1f8e91da16cf72e6ff6f7b8ef9be5bbcb213d6be4eeeabb70" }, "downloads": -1, "filename": "text_to_image-0.0.3.tar.gz", "has_sig": false, "md5_digest": "0d1603dbe565a3d0da7fc895175cd763", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 7366, "upload_time": "2017-10-27T13:10:30", "url": "https://files.pythonhosted.org/packages/73/92/538cca69a2a52664c2e47026fa29098d8a48be2524cf30592268258779bf/text_to_image-0.0.3.tar.gz" } ], "0.0.4": [ { "comment_text": "", "digests": { "md5": "8fad9c80dcd4be8c16710ba1daf5c15d", "sha256": "34ea5d5c66bb3150079793d064cd5847b3904199f6de0c0a269b1313ab700e40" }, "downloads": -1, "filename": "text_to_image-0.0.4.tar.gz", "has_sig": false, "md5_digest": "8fad9c80dcd4be8c16710ba1daf5c15d", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6291, "upload_time": "2017-10-27T13:17:53", "url": "https://files.pythonhosted.org/packages/f7/ea/3073a47b89161a517d3f71d4df2d03ff2d45a406dfd593ea612d785a3c89/text_to_image-0.0.4.tar.gz" } ], "0.0.5": [ { "comment_text": "", "digests": { "md5": "a7677a4a77c8a560b3f9c80b0b42e231", "sha256": "e5484c94ec6c2143e3aee2a7e839e6060dd8eee948470b786272f27e2ba78947" }, "downloads": -1, "filename": "text_to_image-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a7677a4a77c8a560b3f9c80b0b42e231", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6251, "upload_time": "2017-10-27T13:27:03", "url": "https://files.pythonhosted.org/packages/1d/e2/740b0270f1ca06ccdab62c599e0148732e16d056f42c7f8ea9d1d69d3412/text_to_image-0.0.5.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "a7677a4a77c8a560b3f9c80b0b42e231", "sha256": "e5484c94ec6c2143e3aee2a7e839e6060dd8eee948470b786272f27e2ba78947" }, "downloads": -1, "filename": "text_to_image-0.0.5.tar.gz", "has_sig": false, "md5_digest": "a7677a4a77c8a560b3f9c80b0b42e231", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3", "size": 6251, "upload_time": "2017-10-27T13:27:03", "url": "https://files.pythonhosted.org/packages/1d/e2/740b0270f1ca06ccdab62c599e0148732e16d056f42c7f8ea9d1d69d3412/text_to_image-0.0.5.tar.gz" } ] }