{"id":17930523,"url":"https://github.com/lovasoa/seamcarving","last_synced_at":"2025-03-24T04:31:20.322Z","repository":{"id":57666479,"uuid":"195296582","full_name":"lovasoa/seamcarving","owner":"lovasoa","description":"Seam carving implemented in rust","archived":false,"fork":false,"pushed_at":"2020-04-19T22:26:36.000Z","size":2908,"stargazers_count":11,"open_issues_count":0,"forks_count":5,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-19T01:59:54.852Z","etag":null,"topics":["image","image-processing","rust-library","seam-carving"],"latest_commit_sha":null,"homepage":"https://crates.io/crates/seamcarving","language":"Rust","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/lovasoa.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}},"created_at":"2019-07-04T20:14:49.000Z","updated_at":"2024-05-02T11:18:01.000Z","dependencies_parsed_at":"2022-09-26T20:31:43.149Z","dependency_job_id":null,"html_url":"https://github.com/lovasoa/seamcarving","commit_stats":null,"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fseamcarving","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fseamcarving/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fseamcarving/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/lovasoa%2Fseamcarving/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/lovasoa","download_url":"https://codeload.github.com/lovasoa/seamcarving/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245211081,"owners_count":20578341,"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","image-processing","rust-library","seam-carving"],"created_at":"2024-10-28T21:13:57.776Z","updated_at":"2025-03-24T04:31:20.004Z","avatar_url":"https://github.com/lovasoa.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# seamcarving\n\nA rust library for\n**content-aware image resizing** using [seam carving](https://en.wikipedia.org/wiki/Seam_carving).\n\n## How to use\n\nOpen an image using the [**image** crate](https://crates.io/crates/image),\nthen use the `resize` function from this create to create a smaller version\nof the image, while preserving its contents.\n\n```rust\nlet img = image::open(\"input.jpg\")?;\nlet (width, height) = img.dimensions();\nlet resized = seamcarving::resize(\u0026img, width/2, height);\nresized.save(\"resized.jpg\")?;\n```\n\n#### Detailed code example\n - [resize.rs](./examples/resize.rs) : command-line image resizing\n \n## Results\n\nOriginal | Resized\n--- | ---\n![waterfall original](./examples/waterfall.png) | ![waterfall resized with liquid rescaling](./examples/waterfall_resized.png) \n![butterfly original](./examples/butterfly.png) | ![butterfly resized with liquid rescaling](./examples/butterfly_resized.png) ","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fseamcarving","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flovasoa%2Fseamcarving","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flovasoa%2Fseamcarving/lists"}