{"id":15890333,"url":"https://github.com/hansalemaos/a_cv2_easy_resize","last_synced_at":"2026-05-01T14:33:28.893Z","repository":{"id":63716695,"uuid":"570155904","full_name":"hansalemaos/a_cv2_easy_resize","owner":"hansalemaos","description":"Different ways of resizing pictures in OpenCV","archived":false,"fork":false,"pushed_at":"2022-11-24T13:13:26.000Z","size":1,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-12-21T23:27:43.275Z","etag":null,"topics":["images","opencv","python","resize"],"latest_commit_sha":null,"homepage":"https://pypi.org/project/a-cv2-easy-resize","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/hansalemaos.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}},"created_at":"2022-11-24T13:13:23.000Z","updated_at":"2024-03-14T23:38:45.000Z","dependencies_parsed_at":"2022-11-24T15:04:18.010Z","dependency_job_id":null,"html_url":"https://github.com/hansalemaos/a_cv2_easy_resize","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/hansalemaos/a_cv2_easy_resize","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_easy_resize","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_easy_resize/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_easy_resize/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_easy_resize/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/hansalemaos","download_url":"https://codeload.github.com/hansalemaos/a_cv2_easy_resize/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/hansalemaos%2Fa_cv2_easy_resize/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":32501402,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-30T13:12:12.517Z","status":"online","status_checked_at":"2026-05-01T02:00:05.856Z","response_time":64,"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":["images","opencv","python","resize"],"created_at":"2024-10-06T07:05:15.461Z","updated_at":"2026-05-01T14:33:28.863Z","avatar_url":"https://github.com/hansalemaos.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"### Different ways of resizing pictures in OpenCV\n\n```python\npip install a-cv2-easy-resize\n\nfrom a_cv2_easy_resize import add_easy_resize_to_cv2\nfrom a_cv_imwrite_imread_plus import add_imwrite_plus_imread_plus_to_cv2\nadd_imwrite_plus_imread_plus_to_cv2()\nadd_easy_resize_to_cv2()\nimport cv2\npic = cv2.imread_plus(r\"https://raw.githubusercontent.com/hansalemaos/screenshots/main/splitted1.jpeg\")\npic1 = cv2.easy_resize_image(\n    pic.copy(), width=200, height=None, percent=None, interpolation=cv2.INTER_AREA\n)\npic2 = cv2.easy_resize_image(\n    pic.copy(), width=None, height=200, percent=None, interpolation=cv2.INTER_AREA\n)\npic3 = cv2.easy_resize_image(\n    pic.copy(), width=100, height=200, percent=None, interpolation=cv2.INTER_AREA\n)\npic4 = cv2.easy_resize_image(\n    pic.copy(), width=None, height=None, percent=40, interpolation=cv2.INTER_AREA\n)\npic5 = cv2.easy_resize_image(\n    pic.copy(), width=None, height=None, percent=None, interpolation=cv2.INTER_AREA\n)  # returns original\ncv2.imwrite('f:\\\\papagei\\\\pic1.png', pic1)\ncv2.imwrite('f:\\\\papagei\\\\pic2.png', pic2)\ncv2.imwrite('f:\\\\papagei\\\\pic3.png', pic3)\ncv2.imwrite('f:\\\\papagei\\\\pic4.png', pic4)\ncv2.imwrite('f:\\\\papagei\\\\pic5.png', pic5)\n\n```\n\n\n\u003cimg src=\"https://github.com/hansalemaos/screenshots/raw/main/pic1.png\"/\u003e\n\n\n\u003cimg src=\"https://github.com/hansalemaos/screenshots/raw/main/pic2.png\"/\u003e\n\n\n\u003cimg src=\"https://github.com/hansalemaos/screenshots/raw/main/pic3.png\"/\u003e\n\n\n\u003cimg src=\"https://github.com/hansalemaos/screenshots/raw/main/pic4.png\"/\u003e\n\n\n\u003cimg src=\"https://github.com/hansalemaos/screenshots/raw/main/pic5.png\"/\u003e\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_cv2_easy_resize","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fhansalemaos%2Fa_cv2_easy_resize","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fhansalemaos%2Fa_cv2_easy_resize/lists"}