{ "info": { "author": "kai zhu", "author_email": "kaizhu256@gmail.com", "bugtrack_url": null, "classifiers": [ "Development Status :: 3 - Alpha", "Intended Audience :: Developers", "Intended Audience :: Science/Research", "Natural Language :: English", "Operating System :: POSIX", "Operating System :: POSIX :: Linux", "Operating System :: Unix", "Programming Language :: C", "Programming Language :: Python", "Programming Language :: Python :: 2.6", "Programming Language :: Python :: 2.7", "Programming Language :: Python :: 3", "Programming Language :: Python :: 3.0", "Topic :: Multimedia :: Graphics", "Topic :: Multimedia :: Graphics :: Graphics Conversion", "Topic :: Multimedia :: Graphics :: Viewers", "Topic :: Scientific/Engineering" ], "description": "################################################################################\r\nthis is a moderately sophisticated python3.0 script fully utilizing\r\nextensions, & demonstrated to run under python2.6 via py3to2.\r\nfor performance, portions of it have been inlined w/ direct C code using\r\nscipy.weave. the algorithm also heavily uses bitwise operations.\r\nit takes a jpg, gif... image file & outputs it in colorized ascii art.\r\nalso serves dual purpose as a 3-d colorized scientific plotter in text terminals\r\n(screenshots of image conversion & 3d plot in putty terminal included)\r\n\r\nif something fails, try updating ur install of py3to2 to the latest version @:\r\nhttp://pypi.python.org/pypi/py3to2\r\n\r\nhow to enable 256 color on putty: http://www.emacswiki.org/emacs/PuTTY#toc2\r\nhow to enable 256 color on xterm: http://www.frexx.de/xterm-256-notes/\r\n\r\nimg2txt is hard-coded to use lucida-console font, but courier looks ok.\r\nthe screenshot shows putty w/ lucida-console 5pt.\r\n\r\nAUTHOR:\r\n kai zhu\r\n kaizhu256@gmail.com\r\n\r\nREQUIREMENTS:\r\n- posix/unix os (Windows currently unsupported)\r\n- py3to2\r\n- Python Imaging Library\r\n- scipy\r\n\r\nAPI:\r\n img2txt module:\r\n - img2plaintxt - converts image file to portable plain txt\r\n u can copy & paste in documents\r\n - img2txt - converts image to high-quality colorized txt\r\n for display on terminals supporting 256 color (putty, xterm...)\r\n - tplot3d - 3d color scientific plotter\r\n\r\nUSAGE:\r\n start up the py3to2 interpreter by typing \"py3to2\" in ur terminal &\r\n import img2txt:\r\n $ py3to2\r\n\r\n Python 2.6.py3to2 (r26:66714, Nov 18 2008, 00:56:43)\r\n [GCC 3.4.6 20060404 (Red Hat 3.4.6-10)] on linux2\r\n Type \"help\", \"copyright\", \"credits\" or \"license\" for more information.\r\n >>>\r\n >>> import img2txt\r\n created...\r\n py3k server starting...\r\n >>> ...py3k server started w/...\r\n >>>\r\n\r\n in this example, u'll b loading the image file included w/ this distribution,\r\n \"mario.jpg\". its a fairly large image, so u probably want to scale it down\r\n to 0.5 (or less):\r\n >>> colortxt = img2txt.img2txt('mario.jpg', scale = 0.5)\r\n >>> print( colortxt )\r\n\r\n ... beautiful image appears ^_-\r\n\r\n >>> plaintxt = img2txt.img2plaintxt('mario.jpg', scale = 0.5)\r\n >>> print( plaintxt )\r\n\r\n ... rather plain b/w img -_-, but u can copy & paste it in documents\r\n\r\n actually, the plaintxt prolly won't look well when pasted,\r\n b/c most document readers invert the color:\r\n >>> plaintxt = img2txt.img2plaintxt('mario.jpg', scale = 0.5, invert = True)\r\n >>> print( plaintxt )\r\n\r\n ... b/w img w/ colors inverted. may look funny now :/\r\n but it'll b normal when u paste it into ur document\r\n\r\n the 3d plotting feature is a bit more complicated. for the time being,\r\n simply run the test. (if u want to kno how to use it,\r\n u'll need to look @ the img2txt.tplot3d.test() method in img2txt.py)\r\n >>> img2txt.tplot3d.test()\r\n\r\n################################################################################\r\nRECENT CHANGELOG:\r\ncurrent\r\n fixed bug where 64bit gets truncated to 32 on 32bit machine\r\n 256 color support\r\n20081119\r\n fixed bugs in setup.py", "description_content_type": null, "docs_url": null, "download_url": "UNKNOWN", "downloads": { "last_day": -1, "last_month": -1, "last_week": -1 }, "home_page": "http://pypi.python.org/pypi/img2txt", "keywords": "", "license": "UNKNOWN", "maintainer": "", "maintainer_email": "", "name": "img2txt", "package_url": "https://pypi.org/project/img2txt/", "platform": "UNKNOWN", "project_url": "https://pypi.org/project/img2txt/", "project_urls": { "Download": "UNKNOWN", "Homepage": "http://pypi.python.org/pypi/img2txt" }, "release_url": "https://pypi.org/project/img2txt/2008.11.20/", "requires_dist": null, "requires_python": null, "summary": "superseded by asciiporn, http://pypi.python.org/pypi/asciiporn", "version": "2008.11.20" }, "last_serial": 793228, "releases": { "0.1.0": [ { "comment_text": "", "digests": { "md5": "4c0564c6a1613d0f6066be21044546d7", "sha256": "1de5b80859830a581ab021ad5f4e44e5fe4fd472b1c3c3bbf05c6855a409f1f8" }, "downloads": -1, "filename": "img2txt-0.1.0.tar.gz", "has_sig": false, "md5_digest": "4c0564c6a1613d0f6066be21044546d7", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 266723, "upload_time": "2008-10-25T02:05:36", "url": "https://files.pythonhosted.org/packages/85/52/3b83a7ae3cab0f4038bc1c64b75df44c56f03210fce0ea1a0f4636b23de8/img2txt-0.1.0.tar.gz" } ], "2008.11.19": [ { "comment_text": "", "digests": { "md5": "6b4b1686c2ca6513fe5a5ffffabc3057", "sha256": "b078e9070f9b78e99164143653f0614837bc017bb296e581508d1399a403f60e" }, "downloads": -1, "filename": "img2txt-2008.11.19.tar.gz", "has_sig": false, "md5_digest": "6b4b1686c2ca6513fe5a5ffffabc3057", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 268194, "upload_time": "2008-11-20T13:30:56", "url": "https://files.pythonhosted.org/packages/aa/5a/605466525fb5e52b8a063ef2afb04d456d076e76eeb4cf24d8f179a93826/img2txt-2008.11.19.tar.gz" } ], "2008.11.20": [ { "comment_text": "", "digests": { "md5": "13e8d004001494ad3cbf1f6780a9b695", "sha256": "b7c5d78c1ac1c96b2a08a1c86446f387e082d80719268191928cd2812b7684ad" }, "downloads": -1, "filename": "img2txt-2008.11.20.tar.gz", "has_sig": false, "md5_digest": "13e8d004001494ad3cbf1f6780a9b695", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 454081, "upload_time": "2008-11-22T01:30:19", "url": "https://files.pythonhosted.org/packages/e4/7d/f9a42a56e2b9d772a2f86d894c7d134646b5fe0d0a53cd02caed3fbf5a0b/img2txt-2008.11.20.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "13e8d004001494ad3cbf1f6780a9b695", "sha256": "b7c5d78c1ac1c96b2a08a1c86446f387e082d80719268191928cd2812b7684ad" }, "downloads": -1, "filename": "img2txt-2008.11.20.tar.gz", "has_sig": false, "md5_digest": "13e8d004001494ad3cbf1f6780a9b695", "packagetype": "sdist", "python_version": "source", "requires_python": null, "size": 454081, "upload_time": "2008-11-22T01:30:19", "url": "https://files.pythonhosted.org/packages/e4/7d/f9a42a56e2b9d772a2f86d894c7d134646b5fe0d0a53cd02caed3fbf5a0b/img2txt-2008.11.20.tar.gz" } ] }