{"id":17795567,"url":"https://github.com/spcbfr/ascii-go","last_synced_at":"2025-07-30T06:09:04.077Z","repository":{"id":225604773,"uuid":"766277132","full_name":"spcbfr/ascii-go","owner":"spcbfr","description":"A script that converts images to ascii art","archived":false,"fork":false,"pushed_at":"2024-03-09T14:13:52.000Z","size":49,"stargazers_count":28,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-19T21:55:04.384Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Go","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/spcbfr.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}},"created_at":"2024-03-02T20:17:49.000Z","updated_at":"2025-04-19T10:19:49.000Z","dependencies_parsed_at":"2024-06-21T07:36:50.578Z","dependency_job_id":null,"html_url":"https://github.com/spcbfr/ascii-go","commit_stats":null,"previous_names":["spcbfr/ascii-go"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/spcbfr/ascii-go","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcbfr%2Fascii-go","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcbfr%2Fascii-go/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcbfr%2Fascii-go/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcbfr%2Fascii-go/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spcbfr","download_url":"https://codeload.github.com/spcbfr/ascii-go/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spcbfr%2Fascii-go/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":267820864,"owners_count":24149293,"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-07-30T02:00:09.044Z","response_time":70,"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":[],"created_at":"2024-10-27T11:34:43.115Z","updated_at":"2025-07-30T06:09:04.053Z","avatar_url":"https://github.com/spcbfr.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# ascii-go \nI started learning golang last week (February 2024), and this is my first project using it.\n\nthe program takes a PNG image and converts it to ascii art.\n\n## How does it work?\n\nFirst I split the image into pixels, each pixel has an RGB value. I use the RGB value to determine the brightness of a each pixel. finally I map the brightness to a character from an ascii character set and output the result to a file\n\nHere is what the output looks like (this is k9 from doctor who!)\n\n\u003cimg src=\"https://github.com/spcbfr/ascii-go/assets/77839865/2ae6077f-384f-44af-9bd8-962c0baaaebf\" width=\"500\" /\u003e\n\n## How to use\n\n1. Install [golang](https://go.dev/doc/install)\n2. clone the project `git clone https://github.com/spcbfr/ascii-go.git`\n3. run `go build .`\n4. run `./ascii-go` (`ascii-go.exe` if you're on windows) you should see the usage instructions\n\nThe result is best viewed with a zoomed-out text editor with no-syntax highlighting, a low line-height improves the effect further too.\n\n**Note:** if the output doesn't look totally right, try using the `--invert` flag. this uses denser characters for lower brightness pixels and vice-versa\n\nHappy Ascii-ing!\n\n## To work on\n- [ ] support Image formats other than PNG\n- [x] better brightness calculation algorithm\n- [ ] pull image from remote source\n- [ ] reduce image size for images larger than a certain size\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspcbfr%2Fascii-go","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspcbfr%2Fascii-go","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspcbfr%2Fascii-go/lists"}