{"id":25461029,"url":"https://github.com/peterjakubowski/image-editing-utilities","last_synced_at":"2025-10-24T09:05:43.246Z","repository":{"id":267687637,"uuid":"902045245","full_name":"peterjakubowski/Image-Editing-Utilities","owner":"peterjakubowski","description":"Python-based image editing utilities","archived":false,"fork":false,"pushed_at":"2025-02-05T03:23:26.000Z","size":8,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-05T04:22:57.392Z","etag":null,"topics":["helper-functions","image-editing","image-processing","python"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/peterjakubowski.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":"2024-12-11T19:54:16.000Z","updated_at":"2025-02-05T03:23:30.000Z","dependencies_parsed_at":null,"dependency_job_id":"7838e11b-9efa-4392-9b74-5e4f791e91be","html_url":"https://github.com/peterjakubowski/Image-Editing-Utilities","commit_stats":null,"previous_names":["peterjakubowski/image-editing-utilities"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterjakubowski%2FImage-Editing-Utilities","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterjakubowski%2FImage-Editing-Utilities/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterjakubowski%2FImage-Editing-Utilities/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/peterjakubowski%2FImage-Editing-Utilities/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/peterjakubowski","download_url":"https://codeload.github.com/peterjakubowski/Image-Editing-Utilities/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":239412458,"owners_count":19634016,"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":["helper-functions","image-editing","image-processing","python"],"created_at":"2025-02-18T05:05:53.546Z","updated_at":"2025-10-24T09:05:43.162Z","avatar_url":"https://github.com/peterjakubowski.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image-Editing-Utilities\n\nPython helper functions for image editing tasks.\n\n## rescale_width_height\n\nFunction for rescaling the width and height of an image to keep aspect ratio.\n\n### Pillow Image Usage\n\n```commandline\nfrom PIL import Image\nfrom image_utils.image_utils import rescale_width_height\n\n# Open an image with PIL\nimg = Image.open(img_path)\n\n# Retrieve the image's original dimensions\nw, h = img.size\n\n# Rescale the image's dimensions where size is the longest edge\nscaled_wh = rescale_width_height(width=w, height=h, size=1000)\n\n# Resize the image with new dimensions\nresized_img = img.resize(scaled_wh, Image.Resampling.BICUBIC)\n\n```\n\n### OpenCV Usage\n\n```commandline\nimport cv2\nfrom image_utils.image_utils import rescale_width_height\n\n# Open an image with OpenCV\nimg = cv2.imread(img_path)\n\n# Retrieve the image's original dimensions\nh, w, _ = img.shape\n\n# Rescale the image's dimensions where size is the longest edge\nscaled_wh = rescale_width_height(width=w, height=h, size=1000)\n\n# Resize the image with new dimensions\nresized_img = cv2.resize(img, scaled_wh, cv2.INTER_AREA)\n\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterjakubowski%2Fimage-editing-utilities","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpeterjakubowski%2Fimage-editing-utilities","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpeterjakubowski%2Fimage-editing-utilities/lists"}