{"id":13419469,"url":"https://github.com/JonnoFTW/img_term","last_synced_at":"2025-03-15T05:31:20.930Z","repository":{"id":90966665,"uuid":"144251280","full_name":"JonnoFTW/img_term","owner":"JonnoFTW","description":"Display image, video or USB camera in your ANSI terminal!","archived":false,"fork":false,"pushed_at":"2021-09-13T03:14:18.000Z","size":800,"stargazers_count":162,"open_issues_count":0,"forks_count":12,"subscribers_count":10,"default_branch":"master","last_synced_at":"2024-10-23T03:27:32.452Z","etag":null,"topics":["opencv","python3","terminal","terminal-graphics"],"latest_commit_sha":null,"homepage":"","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/JonnoFTW.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null}},"created_at":"2018-08-10T07:17:44.000Z","updated_at":"2024-09-24T07:52:11.000Z","dependencies_parsed_at":null,"dependency_job_id":"82219dff-1ac4-41d5-928a-d80dd568f430","html_url":"https://github.com/JonnoFTW/img_term","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonnoFTW%2Fimg_term","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonnoFTW%2Fimg_term/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonnoFTW%2Fimg_term/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JonnoFTW%2Fimg_term/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JonnoFTW","download_url":"https://codeload.github.com/JonnoFTW/img_term/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690114,"owners_count":20331726,"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","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":["opencv","python3","terminal","terminal-graphics"],"created_at":"2024-07-30T22:01:16.475Z","updated_at":"2025-03-15T05:31:20.606Z","avatar_url":"https://github.com/JonnoFTW.png","language":"Python","funding_links":[],"categories":["Python"],"sub_categories":[],"readme":"Image 2 ANSI\n=\nConverts an image to a representation in ANSI\n\nInstallation\n-\n1. \n```bash\npip install img_term\n```\n\nUsage\n-\n\n```\nusage: img_term [-h] [-img IMG] [-width WIDTH] [-cam CAM] [-col {4,8,24}]\n\nDisplay image to terminal\n\noptional arguments:\n  -h, --help     show this help message and exit\n  -img IMG       Image file to display\n  -width WIDTH   Character width of output\n  -cam CAM       Show camera, this is the default\n  -col {4,8,24}  Colour scheme to use\n```\n\nDisplay an image in terminal \n```bash\nimg_term -img dog.jpg \n```\n\nRender your video capture device to terminal:\n```bash\nimg_term\n```\n\nSelect a colour palette:\n\n```bash\n./img_term.py -img lena.jpg -col 24\n```\n\nExample\n-\nGo from this:\n\n![Dog](/dog.jpg)\n\nTo this:\n\n![Screenshot](/screenshot.png)\n\n\nOr this\n\n![Lenna](/lena.jpg)\n\nTo this:\n\n![LenaPixel](/screenshot2.png)\n\nOr even render a video:\n\n```bash\n./img_term.py -col 24 -vid unrealset.mkv -width 78\n```\n\nhttps://gfycat.com/IdolizedSomeGemsbuck\n\nOr simply stream your USB camera to terminal!:\n\nhttps://gfycat.com/RemarkablePalatableKob","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJonnoFTW%2Fimg_term","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJonnoFTW%2Fimg_term","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJonnoFTW%2Fimg_term/lists"}