{"id":15910877,"url":"https://github.com/chekoduadarsh/padded-image-resizer","last_synced_at":"2026-05-09T16:17:00.466Z","repository":{"id":104031915,"uuid":"240718071","full_name":"chekoduadarsh/Padded-Image-Resizer","owner":"chekoduadarsh","description":"Image Resizer Desinged for DL project which can resize the image keeping aspect ratio!!","archived":false,"fork":false,"pushed_at":"2020-02-16T06:02:47.000Z","size":776,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-07-22T01:51:15.757Z","etag":null,"topics":["aspect-ratio","data-preprocessing","dataset","image-resizer","opencv","python3"],"latest_commit_sha":null,"homepage":"","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/chekoduadarsh.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-02-15T13:33:44.000Z","updated_at":"2020-02-18T02:09:31.000Z","dependencies_parsed_at":null,"dependency_job_id":"36bc93a5-0c5f-465e-a3e4-ad689805acaa","html_url":"https://github.com/chekoduadarsh/Padded-Image-Resizer","commit_stats":{"total_commits":5,"total_committers":1,"mean_commits":5.0,"dds":0.0,"last_synced_commit":"109cfa3c01c341fd67a5f26b6edf5543f19c945e"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/chekoduadarsh/Padded-Image-Resizer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekoduadarsh%2FPadded-Image-Resizer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekoduadarsh%2FPadded-Image-Resizer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekoduadarsh%2FPadded-Image-Resizer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekoduadarsh%2FPadded-Image-Resizer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chekoduadarsh","download_url":"https://codeload.github.com/chekoduadarsh/Padded-Image-Resizer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chekoduadarsh%2FPadded-Image-Resizer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270816316,"owners_count":24650775,"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","status":"online","status_checked_at":"2025-08-17T02:00:09.016Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"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":["aspect-ratio","data-preprocessing","dataset","image-resizer","opencv","python3"],"created_at":"2024-10-06T15:22:09.479Z","updated_at":"2026-05-09T16:17:00.433Z","avatar_url":"https://github.com/chekoduadarsh.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Padded Image Resizer\n\nThis library can resize image while keeping the aspect ratio as it is and will add padding to reach the target size. This library is mainly designed to used fro data preprocessing tool for deep leanrning algorithms, due to images obtained from online sources will have diferent aspect ratio and size.\n\n## Implimentation\nclone/download the repository to your working/local directory\n```\ngit clone https://github.com/chekoduadarsh/Padded-Image-Resizer\n```\n### Bulk Resize\n```python3\nfrom padded_image_resizer import bulk_resizer\nbulk_resizer(input_path=\"path/to/input/image/directory\",output_path=\"path/to/output/directory\",desired_size=32,color=[0,0,0],rename = True)\n```\nThis will resize and convert all the image files in the given dirctory to given size in `desired_size` with a padding color given in `color` given as [B,G,R]. If `rename` is enabled this will rename all the files in non repeating whole number series\n\n### Resize\n```python3\nfrom padded_image_resizer import resizer\nresizer(im_pth=\"path/to/input/image/directory/image.png\",output_path=\"path/to/output/directory\",desired_size=32,color=[0,0,0],rename = True)\n```\nThis is similar to bulk resize, rather than input folder path we will be giving image path in `im_pth` and  `rename` will rename the file to 0\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekoduadarsh%2Fpadded-image-resizer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchekoduadarsh%2Fpadded-image-resizer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchekoduadarsh%2Fpadded-image-resizer/lists"}