{"id":26134299,"url":"https://github.com/kleinpanic/termchroma","last_synced_at":"2026-04-24T04:33:46.461Z","repository":{"id":280380653,"uuid":"941798229","full_name":"kleinpanic/TermChroma","owner":"kleinpanic","description":"TermChroma is a powerful Python CLI/TUI tool that converts images into ASCII art with optional 256-color ANSI codes, multiple gradients, and dynamic resizing. Features an interactive TUI for live adjustments, plus the ability to save colorized ASCII output to a file.","archived":false,"fork":false,"pushed_at":"2025-03-03T04:22:50.000Z","size":10939,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-26T15:13:16.803Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kleinpanic.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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,"publiccode":null,"codemeta":null}},"created_at":"2025-03-03T04:17:37.000Z","updated_at":"2025-03-03T04:22:53.000Z","dependencies_parsed_at":"2025-03-03T05:34:48.467Z","dependency_job_id":null,"html_url":"https://github.com/kleinpanic/TermChroma","commit_stats":null,"previous_names":["kleinpanic/termchroma"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kleinpanic/TermChroma","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinpanic%2FTermChroma","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinpanic%2FTermChroma/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinpanic%2FTermChroma/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinpanic%2FTermChroma/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kleinpanic","download_url":"https://codeload.github.com/kleinpanic/TermChroma/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kleinpanic%2FTermChroma/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32209893,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-24T03:15:14.334Z","status":"ssl_error","status_checked_at":"2026-04-24T03:15:11.608Z","response_time":64,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2025-03-10T23:53:25.835Z","updated_at":"2026-04-24T04:33:46.445Z","avatar_url":"https://github.com/kleinpanic.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# TermChroma\n\n**TermChroma** is a powerful command-line utility for converting images into ASCII art, complete with an interactive TUI, multiple color gradients, and the ability to save the output (including ANSI color escape codes) to a file.\n\n- **Version:** 1.1.0\n- **License:** MIT (or your choice)\n\n## Features\n\n- **Multiple ASCII Sets**: Choose from built-in sets or define your own with `--chars`.\n- **Multiple Color Modes**: None, grayscale, rainbow, blue2red, or custom color mapping.\n- **Interactive TUI**:  \n  - Resize your ASCII art on the fly.  \n  - Change character sets with arrow keys.  \n  - Toggle color modes with `C`.  \n  - Press `Q` to quit.  \n  - Art is always scaled to fit the terminal window, so it never overflows.\n- **Single-shot Conversion**: Use `--no-tui` to simply convert and print or save the ASCII art.\n- **Save to a File**: Use `-o/--save \u003cfile\u003e` to write ASCII output (with color codes) to disk.\n- **256-Color Table**: `--random-colors` displays a color swatch chart.\n\n## Dependencies\n\n- **Python 3.6+**\n- [**Pillow**](https://pypi.org/project/Pillow/) for image processing  \n\n```bash\npip install Pillow\n```\n\n## Installation\n\n1. Clone or download this repository.\n2. Place `termchroma.py` in a directory within your `$PATH`, or just run it locally.\n3. Ensure you have Python 3 and Pillow installed.\n\n## Usage\n\ntermchroma.py [OPTIONS] [IMAGE]\n\n\n**Key Options**:\n\n- `-o, --save \u003cFILE\u003e`  \n  Save the ASCII art to `FILE` (including ANSI color if any).\n- `--scale \u003cFLOAT\u003e`  \n  Initial scale factor (default `0.5`).\n- `--chars \u003cSTRING\u003e`  \n  Override the default ASCII characters for brightness mapping.\n- `--gradient {none,grayscale,rainbow,blue2red,custom}`  \n  Pick a color mode. \n- `--no-tui`  \n  Disable interactive TUI; convert once and print/save ASCII art.\n- `--random-colors`  \n  Display a 256‐color demonstration table, then exit.\n- `--resize-filter {nearest,bilinear,bicubic,lanczos}`  \n  Pillow resize method (default `lanczos`).\n- `-v, --version`  \n  Print version and exit.\n- `-h, --help`  \n  Show help message and exit.\n\n### Interactive TUI Controls\n\n- **Up/Down**: Increase/decrease scale.\n- **Left/Right**: Cycle through different ASCII character sets.\n- **C** (or `c`): Cycle color modes.\n- **Q** (or `q`): Quit TUI.\n\n### Examples\n\n1. **Basic TUI**:\n```bash\n   termchroma.py myphoto.jpg\n```\n\n#### No TUI:\n\ntermchroma.py myphoto.jpg --no-tui --gradient rainbow\n\n#### Saving to file:\n\ntermchroma.py myphoto.jpg --no-tui --scale 0.4 --gradient rainbow --save out.txt\n\n#### Show 256-color table:\n\ntermchroma.py --random-colors\n\n## License\n\nMIT License (or whichever license you prefer). See LICENSE file for details.\nContributing\n\n    Fork the repo and create your branch from main.\n    Make changes or add new features.\n    Submit a pull request.\n\nAuthor\n\n    Kleinpanic\n\nEnjoy TermChroma for your ASCII art needs!\n\n\n---\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleinpanic%2Ftermchroma","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkleinpanic%2Ftermchroma","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkleinpanic%2Ftermchroma/lists"}