{"id":21586054,"url":"https://github.com/magiclen/image-convert","last_synced_at":"2025-04-07T08:19:46.310Z","repository":{"id":48160345,"uuid":"144520470","full_name":"magiclen/image-convert","owner":"magiclen","description":"A high level library for image identification, conversion, interlacing and high quality resizing.","archived":false,"fork":false,"pushed_at":"2024-11-28T08:39:51.000Z","size":6515,"stargazers_count":28,"open_issues_count":2,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-31T06:08:23.660Z","etag":null,"topics":["image","rust"],"latest_commit_sha":null,"homepage":"","language":"Rust","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/magiclen.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":"2018-08-13T02:36:50.000Z","updated_at":"2025-01-30T16:30:24.000Z","dependencies_parsed_at":"2024-12-17T10:04:29.409Z","dependency_job_id":"9fde08ed-f21f-4875-ab25-e3831133b427","html_url":"https://github.com/magiclen/image-convert","commit_stats":{"total_commits":76,"total_committers":1,"mean_commits":76.0,"dds":0.0,"last_synced_commit":"c65f74cb5abdec5bbb407616e905fe4778fa1759"},"previous_names":[],"tags_count":47,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fimage-convert","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fimage-convert/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fimage-convert/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/magiclen%2Fimage-convert/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/magiclen","download_url":"https://codeload.github.com/magiclen/image-convert/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247615385,"owners_count":20967184,"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","rust"],"created_at":"2024-11-24T15:12:30.708Z","updated_at":"2025-04-07T08:19:46.284Z","avatar_url":"https://github.com/magiclen.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"Image Convert\n====================\n\n[![CI](https://github.com/magiclen/image-convert/actions/workflows/ci.yml/badge.svg)](https://github.com/magiclen/image-convert/actions/workflows/ci.yml)\n\nThis crate is a high level library using **MagickWand** (ImageMagick) for image identification, conversion, interlacing and high quality resizing.\n\n## Examples\n\nIdentify an image.\n\n```rust\nuse image_convert::{ImageResource, InterlaceType, identify};\n\nlet input = ImageResource::from_path(\"tests/data/P1060382.JPG\");\n\nlet mut output = None;\n\nlet id = identify(\u0026mut output, \u0026input).unwrap();\n\nassert_eq!(4592, id.resolution.width);\nassert_eq!(2584, id.resolution.height);\nassert_eq!(\"JPEG\", id.format);\nassert_eq!(InterlaceType::NoInterlace, id.interlace);\n```\n\nConvert an image to a PNG image and also resize it.\n\n```rust\nuse std::path::Path;\n\nuse image_convert::{ImageResource, PNGConfig, to_png};\n\nlet source_image_path = Path::new(\"tests/data/P1060382.JPG\");\n\nlet target_image_path = Path::join(source_image_path.parent().unwrap(), \"P1060382_output.png\");\n\nlet mut config = PNGConfig::new();\n\nconfig.width = 1920;\n\nlet input = ImageResource::from_path(source_image_path);\n\nlet mut output = ImageResource::from_path(target_image_path);\n\nto_png(\u0026mut output, \u0026input, \u0026config).unwrap();\n```\n\nSupported output formats are `BMP`, `JPG`, `PNG`, `GIF`, `WEBP`, `ICO`, `PGM` and `GrayRaw`.\n\n## Crates.io\n\nhttps://crates.io/crates/image-convert\n\n## Documentation\n\nhttps://docs.rs/image-convert\n\n## License\n\n[MIT](LICENSE)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fimage-convert","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmagiclen%2Fimage-convert","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmagiclen%2Fimage-convert/lists"}