{"id":13419707,"url":"https://github.com/JuanPotato/Legofy","last_synced_at":"2025-03-15T05:32:48.269Z","repository":{"id":45511797,"uuid":"44288468","full_name":"JuanPotato/Legofy","owner":"JuanPotato","description":"Make images look as if they are made out of 1x1 LEGO blocks","archived":false,"fork":false,"pushed_at":"2024-02-28T02:13:55.000Z","size":6607,"stargazers_count":3139,"open_issues_count":6,"forks_count":183,"subscribers_count":76,"default_branch":"master","last_synced_at":"2024-04-24T11:08:59.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","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/JuanPotato.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":"2015-10-15T02:18:53.000Z","updated_at":"2024-06-09T09:53:43.089Z","dependencies_parsed_at":"2024-06-09T10:03:48.300Z","dependency_job_id":null,"html_url":"https://github.com/JuanPotato/Legofy","commit_stats":{"total_commits":148,"total_committers":23,"mean_commits":6.434782608695652,"dds":0.6891891891891893,"last_synced_commit":"004d1119f392b1b8ae2598ebf5096afdba7c86d3"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanPotato%2FLegofy","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanPotato%2FLegofy/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanPotato%2FLegofy/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JuanPotato%2FLegofy/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JuanPotato","download_url":"https://codeload.github.com/JuanPotato/Legofy/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243690112,"owners_count":20331726,"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":[],"created_at":"2024-07-30T22:01:19.633Z","updated_at":"2025-03-15T05:32:47.957Z","avatar_url":"https://github.com/JuanPotato.png","language":"Python","funding_links":[],"categories":["Python","Tools","\\*nix/\\*nux"],"sub_categories":["Python","Media"],"readme":"# Legofy [![Build Status](https://travis-ci.org/JuanPotato/Legofy.svg?branch=master)](https://travis-ci.org/JuanPotato/Legofy) [![PyPI Downloads](https://img.shields.io/pypi/dm/legofy.svg)](https://pypi.python.org/pypi/legofy) [![PyPI version](https://img.shields.io/pypi/v/legofy.svg)](https://pypi.python.org/pypi/legofy) [![License](https://img.shields.io/pypi/l/legofy.svg)](https://pypi.python.org/pypi/legofy) [![Coverage Status](https://coveralls.io/repos/JuanPotato/Legofy/badge.svg?branch=master\u0026service=github)](https://coveralls.io/github/JuanPotato/Legofy?branch=master) [![Code Health](https://landscape.io/github/JuanPotato/Legofy/master/landscape.svg?style=flat)](https://landscape.io/github/JuanPotato/Legofy/master) [![Join the chat at https://gitter.im/JuanPotato/Legofy](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/JuanPotato/Legofy?utm_source=badge\u0026utm_medium=badge\u0026utm_campaign=pr-badge\u0026utm_content=badge)\n\n\n### What is it?\nLegofy is a python program that takes a static image or gif and makes it so that it looks as if it was built out of LEGO.\n\n\u003ca href=\"https://commons.wikimedia.org/wiki/File:Zoysia_grass_flower.jpg\"\u003e\n\u003cimg alt=\"Before\" title=\"Before (The inflorescence of Zoysia grass, a variety of lawn grass. Picture by Hari Krishnan)\" height=\"500\" src=\"legofy/assets/flower.jpg?raw=true\"\u003e\n\u003c/a\u003e\n\u003cimg alt=\"After\" title=\"After\" height=\"500\" src=\"legofy/assets/flower_lego.png?raw=true\"\u003e\n\n\n### Requirements\n* Python\n* Python modules: Pillow, click # pip will install these automatically if using `pip install legofy`\n* imagemagick # not needed but recommended\n\n### Bugs\nIf you find a bug:\n  1. Check in the [open issues](https://github.com/JuanPotato/Legofy/issues) if the bug already exists.\n  2. If the bug is not there, create a [new issue](https://github.com/JuanPotato/Legofy/issues/new) with clear steps on how to reproduce it.\n\n### Quickstart\n```shell\n$ pip install legofy\n```\nor install from source\n```shell\n$ git clone https://github.com/JuanPotato/Legofy.git\n$ cd Legofy\n$ python setup.py install\n```\nWait! I don't know what any of this means? Use pip then, or if you really want to install from source [have some help.](#installation)\n\n### Usage\n```\nUsage: legofy [OPTIONS] IMAGE [OUTPUT]\n\n  Legofy an image!\n\nOptions:\n  --size INTEGER                  Number of bricks the longest side of the legofied image should have.\n  --dither / --no-dither          Use dither algorithm to spread the color approximation error.\n  --palette [all|effects|mono|solid|transparent]\n                                  Palette to use based on real Lego colors.\n  --help                          Show this message and exit.\n```\n\n#### Palette\nThere are 3 palettes: solid (33 colors), transparent (14 colors) and effects (4 colors).\nYou can use one of them or all the 3.\n```shell\n$ legofy --palette solid image.jpg\n$ legofy --palette transparent image.jpg\n$ legofy --palette effects image.jpg\n$ legofy --palette all image.jpg\n```\nThere is another one palette, mono, with only 2 colors (black and white...). It's just for test and fun...\n\n\n### Troubleshooting\n * [Mac](http://pillow.readthedocs.org/en/3.0.x/installation.html#os-x-installation)\n * [Linux](http://pillow.readthedocs.org/en/3.0.x/installation.html#linux-installation)\n * [Windows](http://pillow.readthedocs.org/en/3.0.x/installation.html#windows-installation)\n\n### Installation\n1. Download and install all requirements\n * python from the [official python website](https://www.python.org/)\n * imagemagick from the [official imagemagick website](https://imagemagick.org/)\n2. Download this project by using the download zip button on this page, or running `git clone https://github.com/JuanPotato/Legofy`\n * If you downloaded a zip file, please unzip it\n3. Open a command line and navigate to the project folder\n4. Run `python setup.py install` while in the project folder\n5. You can now use Legofy anywhere, see [usage](#usage) for more help\n\n### Forks\n\n* JavaScript: [Legofy](https://github.com/Wildhoney/Legofy)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuanPotato%2FLegofy","html_url":"https://awesome.ecosyste.ms/projects/github.com%2FJuanPotato%2FLegofy","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2FJuanPotato%2FLegofy/lists"}