{"id":20590014,"url":"https://github.com/doist/optimize-images-action","last_synced_at":"2025-06-14T17:04:43.473Z","repository":{"id":44672298,"uuid":"383633339","full_name":"Doist/optimize-images-action","owner":"Doist","description":"GitHub Action that applies lossless image optimization.","archived":false,"fork":false,"pushed_at":"2023-03-03T19:09:15.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":10,"default_branch":"main","last_synced_at":"2025-03-06T13:39:16.929Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","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/Doist.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":"2021-07-07T00:46:26.000Z","updated_at":"2023-08-20T14:53:08.000Z","dependencies_parsed_at":"2024-11-16T07:33:42.820Z","dependency_job_id":"c7801433-aed5-4ea5-8140-94b71d8ac72a","html_url":"https://github.com/Doist/optimize-images-action","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/Doist/optimize-images-action","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Foptimize-images-action","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Foptimize-images-action/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Foptimize-images-action/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Foptimize-images-action/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Doist","download_url":"https://codeload.github.com/Doist/optimize-images-action/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Doist%2Foptimize-images-action/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259851705,"owners_count":22921629,"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":[],"created_at":"2024-11-16T07:33:36.972Z","updated_at":"2025-06-14T17:04:43.447Z","avatar_url":"https://github.com/Doist.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# GitHub Action: Optimize Images\n\nGitHub Action that applies lossless image optimization.\n\n## Usage\n\n```yaml\n- uses: doist/optimize-images-action@v2\n  with:\n    # Colon-delimited list of files and directories to process, e.g., \"assets\".\n    input: \"**/*\"\n    # Colon-delimited list of files and directories to ignore, e.g., \"store:assets/originals\".\n    ignore: \"\"\n```\n\nThe values shown are the defaults. For paths, glob patterns using `*`, `**` and `?` are supported.\n\n## Examples\n\nHere's a workflow that optimizes images when they change on the main branch, and submits a pull request with the changes:\n\n```yaml\nname: Optimize images and PR\n\non:\n  push:\n    branches:\n      - main\n    paths:\n      - \"**.png\"\n      - \"**.jpe?g\"\n      - \"**.svg\"\n      - \"**.gif\"\n\njobs:\n  optimize-images:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2 \n      - name: Optimize images\n        id: optimize-images\n        uses: Doist/optimize-images-action@v2\n      - name: Create pull request\n        uses: peter-evans/create-pull-request@v3\n        with:\n          commit-message: \"Optimize images (lossless)\"\n          delete-branch: true\n          body: ${{ steps.optimize-images.outputs.summary }}\n```\n\nOr one that optimizes images included in a pull request to the main branch and commits the changes:\n\n```yaml\nname: Optimize images and commit\n\non:\n  pull_request:\n    branches:\n      - main\n    paths:\n      - \"**.png\"\n      - \"**.jpe?g\"\n      - \"**.svg\"\n      - \"**.gif\"\n\njobs:\n  optimize-images:\n    runs-on: ubuntu-latest\n    steps:\n      - uses: actions/checkout@v2 \n      - name: Optimize images\n        uses: Doist/optimize-images-action@v2\n      - name: Commit\n        uses: stefanzweifel/git-auto-commit-action@v4\n        with:\n          commit_message: \"Optimize images (lossless)\"\n```\n\n## Acknowledgements\n\nThis action builds upon the excellent [image_optim](https://github.com/toy/image_optim) by [@toy](https://github.com/toy).\n\n## License\n\n[MIT License](https://github.com/Doist/optimize-images-action/blob/main/LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Foptimize-images-action","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdoist%2Foptimize-images-action","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdoist%2Foptimize-images-action/lists"}