{"id":25980569,"url":"https://github.com/lainq/img","last_synced_at":"2025-08-12T16:05:59.231Z","repository":{"id":42976302,"uuid":"409126518","full_name":"lainq/img","owner":"lainq","description":"A python library to display images in the terminal","archived":false,"fork":false,"pushed_at":"2022-03-25T09:53:50.000Z","size":111,"stargazers_count":65,"open_issues_count":3,"forks_count":8,"subscribers_count":4,"default_branch":"main","last_synced_at":"2025-07-17T13:44:30.767Z","etag":null,"topics":["cli","image","images","jpeg","png","python","terminal"],"latest_commit_sha":null,"homepage":"https://pranavbaburaj.github.io/img/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/lainq.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":null,"patreon":"pranavbaburaj"}},"created_at":"2021-09-22T08:39:21.000Z","updated_at":"2025-07-14T05:12:14.000Z","dependencies_parsed_at":"2022-09-12T19:40:27.407Z","dependency_job_id":null,"html_url":"https://github.com/lainq/img","commit_stats":null,"previous_names":["pranavbaburaj/img"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/lainq/img","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lainq%2Fimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lainq%2Fimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lainq%2Fimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lainq%2Fimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lainq","download_url":"https://codeload.github.com/lainq/img/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lainq%2Fimg/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270091529,"owners_count":24525210,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-08-12T02:00:09.011Z","response_time":80,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cli","image","images","jpeg","png","python","terminal"],"created_at":"2025-03-05T07:37:16.537Z","updated_at":"2025-08-12T16:05:59.172Z","avatar_url":"https://github.com/lainq.png","language":"Python","funding_links":["https://patreon.com/pranavbaburaj"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\u003ch1\u003e\u003cb\u003e\u003ccode\u003eImg\u003c/code\u003e\u003c/b\u003e\u003c/h1\u003e\nDisplay Images in your terminal with python\n \n \u003cbr\u003e\n\u003cimg src=\"https://i.imgur.com/O1zIgca.png\" height=\"150\"\u003e\n\n\n\u003cp align=\"center\"\u003e\n    \u003cimg src=\"https://static.pepy.tech/badge/terminal-img\"\u003e\n    \u003cimg src=\"https://badges.frapsoft.com/os/v1/open-source.svg?v=103\"\u003e\n    \u003cimg src=\"https://img.shields.io/github/last-commit/pranavbaburaj/img\"\u003e\n    \u003ca href=\"https://twitter.com/intent/tweet?text=Display%20images%20in%20the%20the%20terminal%20using%20python\u0026url=https://github.com/pranavbaburaj/img\u0026via=_pranavbaburaj\u0026hashtags=developers,images,terminal\"\u003e\u003cimg src=\"https://img.shields.io/twitter/url/http/shields.io.svg?style=social\"\u003e\u003c/a\u003e\n  \u003c/p\u003e\n\n\u003c/div\u003e\n\n## Installation\n\nThe package can be installed via `pip`\n\n```py\npip install terminal-img\n```\n\n## Quick Start\n\nThe library is really simple to get started with. Here's is an example of how you display an image\n\n```py\nfrom image import DrawImage\n\nimage = DrawImage.from_file(\"image.png\")\nimage.draw_image()\n```\n\n\u003e You can also use a url if you dont have the file locally stored\n\n```py\nimage = DrawImage.from_url(\"url\")\nimage.draw_image()\n```\n\n\u003e The library can also be used with PIL images\n```py\nfrom PIL import Image\nfrom image import DrawImage\n\nimg = DrawImage(Image.open(\"img.png\"))\nimg.draw_image()\n```\n\n#### CLI\n```\nimg \u003cfile or url\u003e\n```\n\n\n## Methods\n\n\n#### `image.DrawImage`\n\n- `image`: The PIL image\n- `size`(_`Optional[Tuple]`_) : The size of the image to be displayed. Default: 24, 24\n\n\n#### `image.DrawImage.from_file`\n\n- `filename`: The name of the file containing the image\n- `size`(_`Optional[Tuple]`_) : The size of the image to be displayed. Default: 24, 24\n\n#### `image.DrawImage.from_url`\n\n- `url` : The url of the image\n- `size`(_`Optional[Tuple]`_) : The size of the image to be displayed. Default: 24, 24\n\n\n\nSpecial thanks to [@AnonymouX47](https://github.com/AnonymouX47) ❤\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flainq%2Fimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flainq%2Fimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flainq%2Fimg/lists"}