{"id":21297090,"url":"https://github.com/pyar/fotos2imagen","last_synced_at":"2025-03-15T17:28:28.833Z","repository":{"id":46007203,"uuid":"430199725","full_name":"PyAr/fotos2imagen","owner":"PyAr","description":"La idea es armar una imagen pero compuesta por miles de fotitos. Jugar y aprender.","archived":false,"fork":false,"pushed_at":"2021-12-20T15:02:39.000Z","size":63,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":8,"default_branch":"main","last_synced_at":"2025-01-22T07:27:42.194Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PyAr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2021-11-20T20:11:00.000Z","updated_at":"2021-12-20T15:02:42.000Z","dependencies_parsed_at":"2022-09-15T01:02:02.870Z","dependency_job_id":null,"html_url":"https://github.com/PyAr/fotos2imagen","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/PyAr%2Ffotos2imagen","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyAr%2Ffotos2imagen/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyAr%2Ffotos2imagen/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PyAr%2Ffotos2imagen/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PyAr","download_url":"https://codeload.github.com/PyAr/fotos2imagen/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243765328,"owners_count":20344575,"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-11-21T14:33:00.110Z","updated_at":"2025-03-15T17:28:28.803Z","avatar_url":"https://github.com/PyAr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# fotos2imagen\n\nThe idea is to build an image composed by zillion small photos, aiming to play and learn.\n\n## What you need to try this\n\n- A zillion images that will be used as source\n\n- The image you want to \"reproduce\" (we call it \"original\")\n\n\n## Setup\n\nCreate a virtualenv and install the dependencies\n\n```bash\npython3 -m venv env\nsource env/bin/activate\npip install -r requirements.txt\n```\n\n## Preprocess\n\nPre-process all source images so they are useful input for next setp. This is necessary only once (or every time you want to update your images DB).\n\n```bash\nmkdir -p downloads/processed\npython preprocess.py \u003csource-dir\u003e downloads/processed 50 200\n```\n\nwhere source-dir is a directory with all your image sources; 50 and 200 are the sizes of the small squares to be replaced in the original image and the size of the replacing image in each small square.\n\nOnly JPG images are supported.\n\n## Create the mosaic\n\nRun the mosaicking script\n\n```bash\npython fotos2imagen.py --help\npython fotos2imagen.py imagenOriginal.jpg output.jpg \\\n  --chunk-size 50 \\\n  --tile-size 200 \\\n  --randomization 25 \\\n  --blend 0.15 \\\n  --images-root-dir downloads/processed \\\n  --show-progress-window\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyar%2Ffotos2imagen","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpyar%2Ffotos2imagen","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpyar%2Ffotos2imagen/lists"}