{ "info": { "author": "Todd Perry", "author_email": "todd.perry@myport.ac.uk", "bugtrack_url": null, "classifiers": [ "License :: OSI Approved :: MIT License", "Operating System :: OS Independent", "Programming Language :: Python :: 3" ], "description": "# Imgrender: Python Terminal Image Viewer\n\nTerminal image viewer in python, inspired by https://github.com/stefanhaustein/TerminalImageViewer. A piece of software designed to render\nimages on the linux/bash command line. It can either be used as a CLI or as a python library. It should work on most modern terminals, including mobaxterm for windows and jupyter notebooks.\n\n\n## Usage\n\n### Command Line\n\n\n```\nusage: imgrender [-h] [--width WIDTH] [--height HEIGHT] path\n\nRender images on the command line\n\npositional arguments:\n path the image path\n\noptional arguments:\n -h, --help show this help message and exit\n --width WIDTH width of the rendered image (default 60 pixels)\n --height HEIGHT height of the rendered image (default 60 pixels)\n```\n\n### Python Library\n\nSimply import the render function from the imgrender library. The function has two arguments, the image path (positional), and the scale parameteter (keyword), which takes a tuple with two integer (height, width)\n\nfor instance:\n\n```\nIn [1]: from imgrender import render\n\nIn [2]: render('frog.jpg', scale=(40, 60))\n(this will render the image stored in 'frog.jpg' with 40x60 pixels)\n```\n\nThe render function can be called without passing in a scale argument, this will use the default scale parameters of (60, 60)\n\n\n## Results\n\nbelow is an image of the city of Portsmouth generated as a 60x60 visualization.\n\n![Rendered](https://raw.githubusercontent.com/djentleman/imgrender/master/assets/pompey60.jpg)\n\nAnd here is the original image\n\n![Original](https://raw.githubusercontent.com/djentleman/imgrender/master/assets/pompey.jpg)\n\nFinally, here is the same imaged visualised as 250x250 pixels\n\n![Rendered](https://raw.githubusercontent.com/djentleman/imgrender/master/assets/pompey250.jpg)\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/djentleman/imgrender", "keywords": "", "license": "", "maintainer": "", "maintainer_email": "", "name": "imgrender-djentleman", "package_url": "https://pypi.org/project/imgrender-djentleman/", "platform": "", "project_url": "https://pypi.org/project/imgrender-djentleman/", "project_urls": { "Homepage": "https://github.com/djentleman/imgrender" }, "release_url": "https://pypi.org/project/imgrender-djentleman/0.0.2/", "requires_dist": [ "ansicolors (==1.1.8)", "numpy (==1.17.2)", "Pillow (==6.1.0)" ], "requires_python": ">=3.6", "summary": "Python terminal image renderer", "version": "0.0.2" }, "last_serial": 5918349, "releases": { "0.0.2": [ { "comment_text": "", "digests": { "md5": "6efc56d6372e4e7c50763c23467c8c73", "sha256": "26b7768e13fc5ecb40ec322fe7f58ae51c670b2844fce8e7dd8a320679ef14cd" }, "downloads": -1, "filename": "imgrender_djentleman-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6efc56d6372e4e7c50763c23467c8c73", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4337, "upload_time": "2019-10-02T14:47:45", "url": "https://files.pythonhosted.org/packages/9f/8f/fa922d510fa795ed85133cbae51a23e03608b107f72f4e9a357f5b51ca4a/imgrender_djentleman-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "090c4b0b6f19116cf9771e9751fdf37e", "sha256": "984d2f8eccc7dbe682ad67eb3f02f154da836fab131718fa7efedde5a98b9cd3" }, "downloads": -1, "filename": "imgrender-djentleman-0.0.2.tar.gz", "has_sig": false, "md5_digest": "090c4b0b6f19116cf9771e9751fdf37e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2908, "upload_time": "2019-10-02T14:48:29", "url": "https://files.pythonhosted.org/packages/a5/26/d39c00fd449c8759a0f6f54177ad9b05fd90cbfa2d21d2ba461d844f0fe8/imgrender-djentleman-0.0.2.tar.gz" } ] }, "urls": [ { "comment_text": "", "digests": { "md5": "6efc56d6372e4e7c50763c23467c8c73", "sha256": "26b7768e13fc5ecb40ec322fe7f58ae51c670b2844fce8e7dd8a320679ef14cd" }, "downloads": -1, "filename": "imgrender_djentleman-0.0.2-py3-none-any.whl", "has_sig": false, "md5_digest": "6efc56d6372e4e7c50763c23467c8c73", "packagetype": "bdist_wheel", "python_version": "py3", "requires_python": ">=3.6", "size": 4337, "upload_time": "2019-10-02T14:47:45", "url": "https://files.pythonhosted.org/packages/9f/8f/fa922d510fa795ed85133cbae51a23e03608b107f72f4e9a357f5b51ca4a/imgrender_djentleman-0.0.2-py3-none-any.whl" }, { "comment_text": "", "digests": { "md5": "090c4b0b6f19116cf9771e9751fdf37e", "sha256": "984d2f8eccc7dbe682ad67eb3f02f154da836fab131718fa7efedde5a98b9cd3" }, "downloads": -1, "filename": "imgrender-djentleman-0.0.2.tar.gz", "has_sig": false, "md5_digest": "090c4b0b6f19116cf9771e9751fdf37e", "packagetype": "sdist", "python_version": "source", "requires_python": ">=3.6", "size": 2908, "upload_time": "2019-10-02T14:48:29", "url": "https://files.pythonhosted.org/packages/a5/26/d39c00fd449c8759a0f6f54177ad9b05fd90cbfa2d21d2ba461d844f0fe8/imgrender-djentleman-0.0.2.tar.gz" } ] }