forbiddenlink/ImgZen - Automatic Image Optimizer
Automatically optimizes images (AVIF/WebP) and improves performance in your PRs.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| paths | Directories to scan for images (comma separated) | no | ./ |
| ignore | Glob patterns to ignore (comma separated) | no | node_modules/**, target/**, dist/** |
| generate-formats | Formats to generate (comma separated: avif, webp) | no | avif, webp |
| responsive-widths | Widths to generate responsive versions for (comma separated, e.g. "640, 1024") | no | "" |
| inject-lazy-loading | Inject loading="lazy" into HTML images | no | true |
| quality | Quality for AVIF/WebP/JPEG encoding (1-100) | no | 75 |
| png-level | PNG optimization level (0-6, higher = slower but smaller) | no | 2 |
Outputs
| name | description |
|---|---|
| saved-size | Total size saved by optimization |
| report | Markdown report of the optimization |