{"id":16013061,"url":"https://github.com/ifera/image-squarer","last_synced_at":"2025-04-05T02:42:39.306Z","repository":{"id":133566639,"uuid":"540535794","full_name":"Ifera/image-squarer","owner":"Ifera","description":"A simple python script to convert portrait or landscape images to a square (ideally for Instagram posts)","archived":false,"fork":false,"pushed_at":"2022-09-24T17:53:10.000Z","size":1855,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-10T11:11:14.630Z","etag":null,"topics":["image-square","instagram","landscape","portrait","posts","python","script","turn-image-to-square"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Ifera.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":"2022-09-23T16:51:58.000Z","updated_at":"2022-09-24T18:35:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"abdd0d31-084d-4dbc-97c2-0d6c8e9654f8","html_url":"https://github.com/Ifera/image-squarer","commit_stats":{"total_commits":7,"total_committers":2,"mean_commits":3.5,"dds":0.1428571428571429,"last_synced_commit":"fbc5c1cb2c9a8137607c2c8955b88596ede8a863"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ifera%2Fimage-squarer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ifera%2Fimage-squarer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ifera%2Fimage-squarer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Ifera%2Fimage-squarer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Ifera","download_url":"https://codeload.github.com/Ifera/image-squarer/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247280178,"owners_count":20912965,"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":["image-square","instagram","landscape","portrait","posts","python","script","turn-image-to-square"],"created_at":"2024-10-08T14:23:58.838Z","updated_at":"2025-04-05T02:42:39.286Z","avatar_url":"https://github.com/Ifera.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### image-squarer\nA simple python script to convert portrait or landscape images to a square (ideally for Instagram posts)\n\n### Requirements\n\n- Python 3.7+\n- OpenCV\n\n### How to use\n\n- Download or clone the repository\n- Use `python main.py --path \u003cpath\u003e --out [out]`\n\n### Available arguments\n\n- `--path`: Either a path to the image or path to a directory containing images or subdirectories (can be nested as well)\n- `--out`: Name for the output folder, defult: \"export\"\n- `--loop`: When a directory in provided `--path` then this should also be passed\n- `--size`: [Optional], provide a custom size for the output image\n- `--color`: [Optional], border color, default: (255,255,255) in BGR format\n\n### Examples\n\n|    Input Image     |    Output Image     |\n|:------------------:|:-------------------:|\n| ![](meta/in_1.jpg) | ![](meta/out_1.jpg) |\n| ![](meta/in_2.jpg) | ![](meta/out_2.jpg) |","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifera%2Fimage-squarer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fifera%2Fimage-squarer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fifera%2Fimage-squarer/lists"}