{"id":25799600,"url":"https://github.com/spejamchr/string_art","last_synced_at":"2025-10-09T18:03:23.060Z","repository":{"id":125996308,"uuid":"354585330","full_name":"spejamchr/string_art","owner":"spejamchr","description":"Transform an image into string art","archived":false,"fork":false,"pushed_at":"2023-10-26T17:31:49.000Z","size":44190,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2024-04-24T04:27:08.526Z","etag":null,"topics":["art","string-art"],"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/spejamchr.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}},"created_at":"2021-04-04T15:57:24.000Z","updated_at":"2024-03-12T22:41:24.000Z","dependencies_parsed_at":null,"dependency_job_id":"5171f237-6ffd-4ad9-bb11-e05c2a4561ff","html_url":"https://github.com/spejamchr/string_art","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/spejamchr%2Fstring_art","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spejamchr%2Fstring_art/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spejamchr%2Fstring_art/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/spejamchr%2Fstring_art/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/spejamchr","download_url":"https://codeload.github.com/spejamchr/string_art/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241030582,"owners_count":19897121,"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":["art","string-art"],"created_at":"2025-02-27T15:47:21.083Z","updated_at":"2025-10-09T18:03:18.027Z","avatar_url":"https://github.com/spejamchr.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg \n    src=\"examples/elephant-string.jpg\" \n    alt=\"String art rendering of an elephant\"\n    height=250 \n  /\u003e\n\u003c/p\u003e\n\n# string_art\n\n\u003e Transform an image into string art\n\n## Installation\n\n```bash\ngit clone https://github.com/spejamchr/string_art\ncd string_art\ncargo build --release\n```\n\nThe binary will be at `./target/release/string_art`.\n\n## Usage\n\n```bash\nstring_art --input-filepath \u003cFILEPATH\u003e --output-filepath \u003cFILEPATH\u003e [FLAGS] [OPTIONS]\n```\n\nUse `--help` or `-h` to see the full usage.\n\n## Examples\n\n### Grayscale: White String on Black Background\n\n\u003cp align=\"center\"\u003e\n  \u003cimg \n    src=\"examples/fiber.jpg\"\n    alt=\"Reference photo of red yarn on skein\"\n    height=250\n  /\u003e\n  \u003cimg \n    src=\"examples/fiber-string-wob.jpg\"\n    alt=\"String art rendering in white string on a black background of yarn on skein\"\n    height=250\n  /\u003e\n\u003c/p\u003e\n\n```bash\nstring_art \\\n    --input-filepath ./examples/fiber.jpg \\\n    --output-filepath ./examples/fiber-string-wob.jpg \\\n    --data-filepath ./examples/fiber-string-wob.json \\\n    --pin-arrangement perimeter \\\n    --pin-count 300 \\\n    --step-size 0.5 \\\n    --string-alpha 0.1 \\\n    --max-strings 2300 \\\n    --verbose --verbose\n```\n\n### Splash of Color: White \u0026 Red String on Black Background\n\nThis also uses the `--gif-filepath` options to create a GIF of the creation process.\n\n\u003cp align=\"center\"\u003e\n  \u003cimg \n    src=\"examples/fiber.jpg\"\n    alt=\"Reference photo of red yarn on skein\"\n    height=250\n  /\u003e\n  \u003cimg \n    src=\"examples/fiber-string-color.jpg\"\n    alt=\"String art rendering in red \u0026 white string on a black background of yarn on skein\"\n    height=250\n  /\u003e\n  \u003cimg \n    src=\"examples/fiber-string-color.gif\"\n    alt=\"Animation of string art construction\"\n    height=250\n  /\u003e\n\u003c/p\u003e\n\n```bash\nstring_art \\\n    --input-filepath ./examples/fiber.jpg \\\n    --output-filepath ./examples/fiber-string-color.jpg \\\n    --data-filepath ./examples/fiber-string-color.json \\\n    --gif-filepath ./examples/fiber-string-color.gif \\\n    --pin-arrangement circle \\\n    --pin-count 300 \\\n    --step-size 0.5 \\\n    --string-alpha 0.1 \\\n    --foreground-color '#FFFFFF' \\\n    --foreground-color '#FF0000' \\\n    --max-strings 2600 \\\n    --verbose --verbose\n```\n\n### The Elephant: Auto-pick the colors\n\n```bash\nstring_art \\\n    --input-filepath ./examples/elephant.jpg \\\n    --output-filepath ./examples/elephant-string.jpg \\\n    --data-filepath ./examples/elephant.json \\\n    --pin-arrangement circle \\\n    --pin-count 400 \\\n    --step-size 0.5 \\\n    --string-alpha 0.1 \\\n    -u 3 \\\n    --verbose --verbose\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspejamchr%2Fstring_art","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fspejamchr%2Fstring_art","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fspejamchr%2Fstring_art/lists"}