{"id":40374618,"url":"https://github.com/tmpim/juroku","last_synced_at":"2026-01-20T11:34:17.939Z","repository":{"id":47500432,"uuid":"130591727","full_name":"tmpim/juroku","owner":"tmpim","description":"Convert images to ComputerCraft programs that can be rendered on computers and monitors.","archived":false,"fork":false,"pushed_at":"2022-12-31T02:54:39.000Z","size":35624,"stargazers_count":12,"open_issues_count":0,"forks_count":4,"subscribers_count":3,"default_branch":"master","last_synced_at":"2026-01-15T00:15:42.266Z","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/tmpim.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}},"created_at":"2018-04-22T17:39:36.000Z","updated_at":"2023-08-23T07:54:13.000Z","dependencies_parsed_at":"2023-01-31T17:46:17.356Z","dependency_job_id":null,"html_url":"https://github.com/tmpim/juroku","commit_stats":null,"previous_names":["1lann/juroku"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tmpim/juroku","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fjuroku","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fjuroku/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fjuroku/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fjuroku/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tmpim","download_url":"https://codeload.github.com/tmpim/juroku/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tmpim%2Fjuroku/sbom","scorecard":{"id":2169,"data":{"date":"2025-08-04","repo":{"name":"github.com/tmpim/juroku","commit":"f9d9e4fe8746006622be685a893df2dfb6aa4d23"},"scorecard":{"version":"v5.2.1-28-gc1d103a9","commit":"c1d103a9bb9f635ec7260bf9aa0699466fa4be0e"},"score":3,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/23 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#code-review"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#binary-artifacts"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#token-permissions"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#packaging"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'master'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#branch-protection"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#security-policy"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/c1d103a9bb9f635ec7260bf9aa0699466fa4be0e/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-14T12:48:31.234Z","repository_id":47500432,"created_at":"2025-08-14T12:48:31.234Z","updated_at":"2025-08-14T12:48:31.234Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28602476,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-20T10:46:13.255Z","status":"ssl_error","status_checked_at":"2026-01-20T10:42:51.865Z","response_time":117,"last_error":"SSL_read: 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":"2026-01-20T11:34:17.088Z","updated_at":"2026-01-20T11:34:17.930Z","avatar_url":"https://github.com/tmpim.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Juroku\n\nJuroku converts an image (PNG or JPG) into a Lua script that can be loaded as a\nComputerCraft API to be used to draw on terminals and monitors.\n\n## Building and Running\n1. You have to be using gcc 8 or 7 (even older versions may work as well, just untested). Juroku will not build on gcc 9+. If you see errors like\n```\n# github.com/1lann/imagequant\nkmeans.c: In function ‘kmeans_do_iteration’:\nkmeans.c:90:13: error: ‘hist_size’ not specified in enclosing ‘parallel’\n   90 |     #pragma omp parallel for if (hist_size \u003e 3000) \\\n      |             ^~~\nkmeans.c:90:13: error: enclosing ‘parallel’\nkmeans.c:94:69: error: ‘achv’ not specified in enclosing ‘parallel’\n   94 |         unsigned int match = nearest_search(n, \u0026achv[j].acolor, achv[j].tmp.likely_colormap_index, \u0026diff);\n      |                                                                     ^\nkmeans.c:90:13: error: enclosing ‘parallel’\n   90 |     #pragma omp parallel for if (hist_size \u003e 3000) \\\n      |             ^~~\nkmeans.c:94:30: error: ‘n’ not specified in enclosing ‘parallel’\n   94 |         unsigned int match = nearest_search(n, \u0026achv[j].acolor, achv[j].tmp.likely_colormap_index, \u0026diff);\n      |                              ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nkmeans.c:90:13: error: enclosing ‘parallel’\n   90 |     #pragma omp parallel for if (hist_size \u003e 3000) \\\n      |             ^~~\nkmeans.c:98:9: error: ‘map’ not specified in enclosing ‘parallel’\n   98 |         kmeans_update_color(achv[j].acolor, achv[j].perceptual_weight, map, match, omp_get_thread_num(), average_color);\n      |         ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nkmeans.c:90:13: error: enclosing ‘parallel’\n   90 |     #pragma omp parallel for if (hist_size \u003e 3000) \\\n      |             ^~~\n```\nYou are using the wrong version of gcc.\n\n2. A cgo security exception is required to allow the libimagequant to build:\n```\nexport CGO_CFLAGS_ALLOW=.*\nexport CGO_LDFLAGS_ALLOW=.*\n```\n3. `go get -u github.com/tmpim/juroku/cmd/juroku` (or if you want to specify a specific C compiler, you can do `CC=\"gcc-8\" go get ...`)\n4. Find `juroku` in your `$GOPATH/bin` and run it.\n\nTODO: Release pre-built binaries.\n\n## Usage:\n```\nUsage: juroku [options] input_image\n\nJuroku converts an image (PNG or JPG) into a Lua script that can be\nloaded as a ComputerCraft API to be used to draw on terminals and monitors.\nImages are not automatically downscaled or cropped.\n\ninput_image must have a height that is a multiple of 3 in pixels,\nand a width that is a multiple of 2 in pixels.\n\nOptions:\n  -d float\n    \tset the amount of allowed dithering (0 = none, 1 = most) (default 0.2)\n  -license\n    \tshow GPLv3 licensing disclaimer\n  -o string\n    \tset location of output script (default \"image.lua\")\n  -p string\n    \tset location of output preview (will be PNG) (default \"preview.png\")\n  -q int\n    \tset the processing speed/quality (1 = slowest, 10 = fastest) (default 1)\n```\n\n## Disclaimer\n\nJuroku when built contains libimagequant which is licensed under GPLv3. For more\ninformation and the source code of the relevant portions, see: https://github.com/1lann/imagequant.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpim%2Fjuroku","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftmpim%2Fjuroku","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftmpim%2Fjuroku/lists"}