{"id":37231727,"url":"https://github.com/jondot/ansimake","last_synced_at":"2026-01-15T03:45:35.934Z","repository":{"id":332418252,"uuid":"1118716955","full_name":"jondot/ansimake","owner":"jondot","description":"Quickly convert pixel images of ANSI art created with AI to actual ANSI art.","archived":false,"fork":false,"pushed_at":"2025-12-18T07:54:26.000Z","size":390,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-13T20:54:56.051Z","etag":null,"topics":["image-processing","retro","tools"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/jondot.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,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-18T07:11:32.000Z","updated_at":"2025-12-18T07:55:04.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/jondot/ansimake","commit_stats":null,"previous_names":["jondot/ansimake"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/jondot/ansimake","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fansimake","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fansimake/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fansimake/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fansimake/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jondot","download_url":"https://codeload.github.com/jondot/ansimake/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jondot%2Fansimake/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28416492,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T08:38:59.149Z","status":"ssl_error","status_checked_at":"2026-01-14T08:38:43.588Z","response_time":107,"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":["image-processing","retro","tools"],"created_at":"2026-01-15T03:45:35.288Z","updated_at":"2026-01-15T03:45:35.921Z","avatar_url":"https://github.com/jondot.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ansimake\n\n\u003cimg src=\"after.png\" width=\"600\" /\u003e\n\nQuickly convert _pixel images of ANSI art created with AI_ to actual ANSI art.\n\n## Features\n\n- 🎨 **True Color Support** - Full 24-bit RGB color rendering\n- 🖼️ **Multiple Formats** - Supports PNG, JPEG, GIF, and more\n- 📐 **Smart Sizing** - Automatically fits to terminal size or custom dimensions\n- 🎭 **Two Rendering Modes**:\n  - Half-block mode (default) - Uses foreground and background colors for higher detail\n  - Block mode - Uses full blocks\n- 🎯 **Color Quantization** - Optional CIELAB-based color reduction for smoother output\n\n## Installation\n\n```bash\ncargo install ansimake\n```\n\nOr build from source:\n\n```bash\ngit clone https://github.com/yourusername/ansimake.git\ncd ansimake\ncargo build --release\n```\n\n## Usage\n\n### Basic Usage\n\n```bash\nansimake image.png\n```\n\n### Command Line Options\n\n```bash\nansimake [OPTIONS] \u003cIMAGE_PATH\u003e\n\nOptions:\n  -b, --bw              Convert to black and white\n  -w, --width \u003cWIDTH\u003e   Output width (maintains aspect ratio if height not specified)\n      --height \u003cHEIGHT\u003e Output height (overrides aspect ratio if specified with width)\n  -t, --tolerance \u003cTOL\u003e Color tolerance/distance threshold (default: 0)\n  -B, --blocks          Use block characters with foreground colors only\n  -h, --help            Print help\n```\n\n### Examples\n\nThe goal was to built a tool that converts an _ansi-looking_ source image to its actual ANSI output, and so it works best in these conditions\n\n#### Before\n\u003cimg src=\"cute.png\" width=\"600\" /\u003e\n\n#### After\n\u003cimg src=\"after.png\" width=\"600\" /\u003e\n\n```bash\n# Convert with custom width\nansimake photo.jpg -w 100\n\n# Black and white conversion\nansimake image.png -b\n\n# Use block mode for simpler rendering\nansimake image.png -B\n\n# Color quantization for smoother output\nansimake image.png -t 15\n```\n\n## Library Usage\n\n```rust,no_run\nuse ansimake::{Image, ConversionConfig};\n\nfn main() -\u003e Result\u003c(), Box\u003cdyn std::error::Error\u003e\u003e {\n    // Load an image\n    let img = Image::load(\"image.png\")?;\n\n    // Optionally convert to grayscale\n    let img = img.to_grayscale();\n\n    // Configure conversion\n    let config = ConversionConfig {\n        size: (80, 24),\n        use_blocks: true,\n        color_tolerance: 10.0,\n        ..Default::default()\n    };\n\n    // Convert to ANSI art\n    let ansi_art = img.to_ansi(\u0026config);\n    println!(\"{}\", ansi_art);\n    Ok(())\n}\n```\n\n\n## Requirements\n\n- Rust 1.70+ (for building from source)\n- A terminal with true color support (most modern terminals)\n\n## License\n\nMIT License - see LICENSE file for details\n\n## Contributing\n\nContributions are welcome! Please feel free to submit a Pull Request.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondot%2Fansimake","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjondot%2Fansimake","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjondot%2Fansimake/lists"}