{"id":39511468,"url":"https://github.com/elarsaks/resize-rs","last_synced_at":"2026-01-18T06:03:39.468Z","repository":{"id":298374908,"uuid":"999753719","full_name":"elarsaks/resize-rs","owner":"elarsaks","description":"A fast, Rust-powered GitHub Action to batch-resize images by width while preserving aspect ratio.","archived":false,"fork":false,"pushed_at":"2025-08-17T11:48:15.000Z","size":2388,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-08-17T13:24:16.043Z","etag":null,"topics":["github-actions","image-processing","rust"],"latest_commit_sha":null,"homepage":"","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/elarsaks.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}},"created_at":"2025-06-10T18:24:56.000Z","updated_at":"2025-08-17T11:48:18.000Z","dependencies_parsed_at":"2025-06-10T20:30:40.272Z","dependency_job_id":"107ab06d-9285-48c7-b55a-113d581c062e","html_url":"https://github.com/elarsaks/resize-rs","commit_stats":null,"previous_names":["elarsaks/resize-rs"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/elarsaks/resize-rs","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elarsaks%2Fresize-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elarsaks%2Fresize-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elarsaks%2Fresize-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elarsaks%2Fresize-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/elarsaks","download_url":"https://codeload.github.com/elarsaks/resize-rs/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/elarsaks%2Fresize-rs/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28531991,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-18T00:39:45.795Z","status":"online","status_checked_at":"2026-01-18T02:00:07.578Z","response_time":98,"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":["github-actions","image-processing","rust"],"created_at":"2026-01-18T06:03:38.764Z","updated_at":"2026-01-18T06:03:39.462Z","avatar_url":"https://github.com/elarsaks.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Image Resizer Action\n\n\u003e A fast, Rust-powered GitHub Action to batch-resize images by width while preserving aspect ratio.\n\n![CI Status](https://github.com/elarsaks/resize-rs/actions/workflows/ci.yml/badge.svg)\n\n## 🎨 Example Output\n\n\u003cdiv align=\"left\"\u003e\n  \u003cimg src=\"assets/resized/test-image-256.png\" alt=\"256 px\" width=\"256\"/\u003e\n  \u003cimg src=\"assets/resized/test-image-128.png\" alt=\"128 px\" width=\"128\"/\u003e\n  \u003cimg src=\"assets/resized/test-image-64.png\" alt=\"64 px\" width=\"64\"/\u003e\n\u003c/div\u003e\n\nFrom left to right: the original image (1024\u0026nbsp;px) is resized down to 256\u0026nbsp;px, 128\u0026nbsp;px, and 64\u0026nbsp;px.\n\n## 📦 Usage\n\nIn your workflow, reference this action and supply the folder of source images, desired widths, and an output folder:\n\n## [📖 Example Workflow ](https://github.com/elarsaks/resize-rs/blob/master/.github/workflows/resize-images.yml)\n\n```yaml\nname: Resize App Images\n\non:\n  push:\n    branches: [master] # Trigger on pushes to master branch\n  workflow_dispatch: # Allow manual runs from the Actions tab\n\n# Grant write permission so the workflow can commit back to the repo\npermissions:\n  contents: write\n\njobs:\n  resize:\n    runs-on: ubuntu-latest\n\n    steps:\n      # 1. Checkout the repo so we can read/write files\n      - name: Check out code\n        uses: actions/checkout@v3\n        with:\n          token: ${{ secrets.GITHUB_TOKEN }} # Provides auth for checkout \u0026 push\n          persist-credentials: true # Keep token in Git config for commits\n\n      # 2. Configure a Git user so commits have a valid author\n      - name: Configure Git user\n        run: |\n          git config user.name \"github-actions[bot]\"\n          git config user.email \"github-actions[bot]@users.noreply.github.com\"\n\n      # 3. Run the custom resize action\n      - name: Resize images\n        uses: elarsaks/resize-rs@v0.1.1\n        with:\n          source-dir: assets/original # Source directory of original images\n          sizes: \"64,128,256\" # Target resize dimensions\n          output-dir: assets/resized # Where resized images are saved\n\n      # 4. Commit \u0026 push only if new/resized files exist\n      - name: Commit \u0026 push resized files\n        run: |\n          git add assets/resized\n          git diff --cached --quiet || (      # Check for staged changes\n            git commit -m \"ci: add resized images\"\n            git push                         # Push commits to the triggering branch\n          )\n\n```  \n\n## 🔧 Inputs\n\n| Input        | Description                                 | Required | Default |\n|--------------|---------------------------------------------|:--------:|:-------:|\n| `source-dir` | Directory containing original images        |   true   |    —    |\n| `sizes`      | Comma-separated list of target widths (px)  |   true   |    —    |\n| `output-dir` | Directory where resized images will be saved|   true   |    —    |\n\n## 🛠️ Outputs\n\nIt writes resized files into `output-dir`.\n\n\n## 📄 License\n\n[MIT](LICENSE) © Elar Saks\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felarsaks%2Fresize-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Felarsaks%2Fresize-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Felarsaks%2Fresize-rs/lists"}