valentin-kaiser/webppipe
Optimize images in a repository by converting PNG/JPEG to WebP and committing the result.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| quality | WebP quality (1-100). Ignored when lossless is true. | no | 80 |
| lossless | Use lossless WebP encoding. | no | false |
| max-width | Maximum image width in pixels (0 = unlimited). | no | 0 |
| max-height | Maximum image height in pixels (0 = unlimited). | no | 0 |
| include | Comma-separated glob patterns of files to include. | no | **/*.png,**/*.jpg,**/*.jpeg,**/*.PNG,**/*.JPG,**/*.JPEG |
| exclude | Comma-separated glob patterns of files to exclude. | no | .git/**,node_modules/**,vendor/** |
| keep-originals | Keep original files alongside the generated .webp files. Set to 'false' to replace originals. | no | true |
| dry-run | Report planned conversions without writing files. | no | false |
| concurrency | Number of parallel conversion workers (0 = NumCPU). | no | 0 |
| repo-path | Path to the repository / working directory. | no | . |
| commit | Commit converted files. | no | true |
| push | Push the commit to the remote. | no | true |
| commit-message | Commit message for converted files. | no | [GEN] optimize images to WebP |
| author-name | Git author name used for the commit. | no | webppipe[bot] |
| author-email | Git author email used for the commit. | no | webppipe@users.noreply.github.com |
| branch | Branch to push to (empty = current branch). | no | "" |
Outputs
no outputs