{"id":30876774,"url":"https://github.com/ije/reimg","last_synced_at":"2026-05-06T03:03:01.457Z","repository":{"id":311792554,"uuid":"1045115926","full_name":"ije/reimg","owner":"ije","description":"A simple CLI tool to resize images.","archived":false,"fork":false,"pushed_at":"2025-08-26T18:31:30.000Z","size":952,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-08-26T22:18:39.882Z","etag":null,"topics":[],"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/ije.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,"zenodo":null}},"created_at":"2025-08-26T17:16:22.000Z","updated_at":"2025-08-26T21:15:02.000Z","dependencies_parsed_at":"2025-08-26T22:19:43.285Z","dependency_job_id":"52e1bba7-561d-499e-8553-ea26fb69448b","html_url":"https://github.com/ije/reimg","commit_stats":null,"previous_names":["ije/reimg"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/ije/reimg","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Freimg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Freimg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Freimg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Freimg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ije","download_url":"https://codeload.github.com/ije/reimg/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ije%2Freimg/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274125879,"owners_count":25226493,"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","status":"online","status_checked_at":"2025-09-08T02:00:09.813Z","response_time":121,"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":[],"created_at":"2025-09-08T03:07:10.512Z","updated_at":"2026-05-06T03:03:01.448Z","avatar_url":"https://github.com/ije.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# reimg\n\nA simple CLI tool for web image resizing, using [image-rs](https://github.com/image-rs/image).\n\n## Installation\n\n```bash\ncargo install reimg\n```\n\nYou can also download the prebuilt binary from the [release page](https://github.com/ije/reimg/releases)\n\n## Usage\n\n```bash\nreimg -s 500x500 --2x --cover input.jpg output.avif\n```\n\nreimg uses stdin/stdout as the input/output if no input/output args provided:\n\n```js\nconst out = await Bun.$`reimg -s ${500}x${500} --cover --format avif \u003c ${Bun.file(\"photo.jpg\")}`.quiet()\nconst res = new Response(out.arrayBuffer(), {\n  headers: {\n    \"content-type\": \"image/avif\"\n  }\n})\n```\n\n## Options\n\n```\n$ reimg\n\nUsage: reimg [OPTIONS] [input_file] [output_file]\n\nOptions:\n  -w, --width   \u003cwidth\u003e          Set the width of the output image\n  -h, --height  \u003cheight\u003e         Set the height of the output image\n  -s, --size    \u003cwidth\u003ex\u003cheight\u003e Set the width and height of the output image\n  --scale       \u003cscale\u003e          Scale the output image by a factor [default: 1.0]\n    --2x                         Scale the output image by 2x\n    --3x                         Scale the output image by 3x\n    --4x                         Scale the output image by 4x\n    --5x                         Scale the output image by 5x\n  --fit         \u003cfit\u003e            Set the fit mode for the resize operation [possible values: cover, contain, scale-down]\n    --cover                      Resize the image to fill the given dimensions, cropping if necessary\n    --contain                    Resize the image to fit the given dimensions\n    --scale-down                 Resize the image to fit the given dimensions, but not larger than the original\n  -q, --quality \u003cquality\u003e        Set the quality of the output image [default: 85]\n  --format      \u003cformat\u003e         Set the format of the output image [possible values: jpeg, png, webp, avif, ico]\n  --data-url                     Show the data url of the resized image\n  -i, --info                     Show image metadata\n```\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fije%2Freimg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fije%2Freimg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fije%2Freimg/lists"}