{"id":38905109,"url":"https://github.com/pgdr/seam-carving","last_synced_at":"2026-01-17T15:07:19.755Z","repository":{"id":322413291,"uuid":"1089388969","full_name":"pgdr/seam-carving","owner":"pgdr","description":null,"archived":false,"fork":false,"pushed_at":"2025-11-04T09:29:19.000Z","size":324,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-04T11:25:17.837Z","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/pgdr.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-11-04T09:23:56.000Z","updated_at":"2025-11-04T09:29:23.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/pgdr/seam-carving","commit_stats":null,"previous_names":["pgdr/seam-carving"],"tags_count":null,"template":false,"template_full_name":null,"purl":"pkg:github/pgdr/seam-carving","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Fseam-carving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Fseam-carving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Fseam-carving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Fseam-carving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/pgdr","download_url":"https://codeload.github.com/pgdr/seam-carving/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/pgdr%2Fseam-carving/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28510928,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-17T13:38:16.342Z","status":"ssl_error","status_checked_at":"2026-01-17T13:37:44.060Z","response_time":85,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-17T15:07:19.062Z","updated_at":"2026-01-17T15:07:19.738Z","avatar_url":"https://github.com/pgdr.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Seam Carving Program\n\nThe Seam Carving program applies a dynamic programming approach to\nresize images by removing low-energy \"seams\", enabling content-aware\nresizing with minimal distortion.  It identifies *seams*—paths of least\nenergy vertically through the image—by computing pixel energy from\nintensity gradients.\n\n\n## Example\n\nWhen run on this image, with width 400 (currently 539) one can observe\nthat almost no information is lost\n\n![](assets/black.png)\n\nonly bits of Bare Egil, leading to an even more Bare Bare Egil:\n\n![](assets/black-400.jpg)\n\n## Requirements\n\n- `PIL` (Pillow) for image processing\n- `numpy` for numerical operations\n- (optional) `tqdm` for progress visualization\n\n## Usage\n\nTo run the program, execute the following command in the terminal:\n\n```\npython seam.py \u003cimage_filename\u003e \u003cnew_width\u003e\n```\n\n- `\u003cimage_filename\u003e`: Path to the image file you want to resize.\n- `\u003cnew_width\u003e`: The desired width for the output image.\n\n### Example\n\n```\npython seam.py input.jpg 300\n```\n\nThis command will resize `input.jpg` to a width of 300 pixels, while\nkeeping the aspect ratio intact by removing the least important seams.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgdr%2Fseam-carving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpgdr%2Fseam-carving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpgdr%2Fseam-carving/lists"}