{"id":13450736,"url":"https://github.com/esimov/legoizer","last_synced_at":"2025-04-28T10:49:37.122Z","repository":{"id":91223598,"uuid":"93758640","full_name":"esimov/legoizer","owner":"esimov","description":"A tool to convert images to Lego bricks.","archived":false,"fork":false,"pushed_at":"2024-05-21T09:58:42.000Z","size":154,"stargazers_count":80,"open_issues_count":0,"forks_count":14,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-03-30T08:51:14.802Z","etag":null,"topics":["golang","image-legoizer","image-processing","lego"],"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/esimov.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":"2017-06-08T14:25:04.000Z","updated_at":"2024-12-31T06:44:04.000Z","dependencies_parsed_at":"2024-06-20T07:34:55.276Z","dependency_job_id":null,"html_url":"https://github.com/esimov/legoizer","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/esimov%2Flegoizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Flegoizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Flegoizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/esimov%2Flegoizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/esimov","download_url":"https://codeload.github.com/esimov/legoizer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251299428,"owners_count":21567221,"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":["golang","image-legoizer","image-processing","lego"],"created_at":"2024-07-31T07:00:37.821Z","updated_at":"2025-04-28T10:49:37.093Z","avatar_url":"https://github.com/esimov.png","language":"Go","funding_links":[],"categories":["Libraries/tools"],"sub_categories":[],"readme":"# legoizer\n\n**Legoizer** is a simple tool to generate lego-like images taking as input an image and converting it to lego bricks. This process consists of two steps: \n1. The image is converted to it's quantified representation to reduce the number of colors. \n2. The bricks are generated based on the curently processed cell color compared to it's neighboring cells average color.\n\n### Install\n\n`$ go get -u github.com/esimov/legoizer`\n\n### Run\nType `$ legoizer --help` to get the currently supported commands.\n\n```\nUsage of legoizer:\n  -colors int\n    \tNumber of colors (default 128)\n  -in string\n    \tInput path\n  -out string\n    \tOutput path\n  -size int\n    \tLego size     \n```\n\n| Source image | Legoized image\n|:--:|:--:|\n| \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582530-e4095cd8-5b39-11e7-97f4-1a457857c80c.png\"\u003e | \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582636-42c42d84-5b3a-11e7-8f60-15ca7cf4f2ce.png\"\u003e |\n| \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582916-54d7b27e-5b3b-11e7-84b7-5209b878c2ca.jpg\" \u003e | \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582932-67795126-5b3b-11e7-82bd-4c4df11d4f5a.png\"\u003e |\n| \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582571-fea42c9e-5b39-11e7-8357-6ed2a425fdd1.jpg\"\u003e | \u003cimg src=\"https://user-images.githubusercontent.com/883386/27582651-4d1cb99a-5b3a-11e7-8bd1-1095d265b373.png\"\u003e |  \n\n### Discalimer\n\nThis is a simple toy, so it does not have any commercial usage.\n\n## License\n\nThis software is distributed under the MIT license found in the LICENSE file.\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Flegoizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fesimov%2Flegoizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fesimov%2Flegoizer/lists"}