Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ Add the following arguments to the workflow definition to control compression se
with:
jpegQuality: '85'
jpegProgressive: false
pngQuality: '90'
pngQuality: '80'
webpQuality: '85'
avifQuality: '75'
```
Expand All @@ -84,7 +84,7 @@ with:

- [jpegQuality](https://sharp.pixelplumbing.com/api-output/#jpeg): Number, integer 1-100, default 85 stored in a string.
- [jpegProgressive](https://sharp.pixelplumbing.com/api-output/#jpeg): Boolean, true or false, default false.
- [pngQuality](https://sharp.pixelplumbing.com/api-output/#png): Number, integer 1-100, default 90 stored in a string.
- [pngQuality](https://sharp.pixelplumbing.com/api-output/#png): Number, integer 1-100, default 80 stored in a string.
- [webpQuality](https://sharp.pixelplumbing.com/api-output/#webp): Number, integer 1-100, default 85 stored in a string.
- [avifQuality](https://sharp.pixelplumbing.com/api-output/#avif): Number, integer 1-100, default 75 stored in a string.

Expand Down Expand Up @@ -304,6 +304,3 @@ Happy to hear you’re interested in contributing to Image Actions! Please find
## šŸ’¼ License

This project is licensed under a [GNU General Public License](LICENSE).



2 changes: 1 addition & 1 deletion action.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ inputs:
pngQuality:
description: "PNG quality level"
required: false
default: "90"
default: "80"

webpQuality:
description: "WEBP quality level"
Expand Down
2 changes: 1 addition & 1 deletion src/constants.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ const REPO_DIRECTORY = process.env['GITHUB_WORKSPACE']

const JPEG_QUALITY = parseInt(core.getInput('jpegQuality')) || 85
const JPEG_PROGRESSIVE = core.getInput('jpegProgressive') === 'true'
const PNG_QUALITY = parseInt(core.getInput('pngQuality')) || 90
const PNG_QUALITY = parseInt(core.getInput('pngQuality')) || 80
const WEBP_QUALITY = parseInt(core.getInput('webpQuality')) || 85
const AVIF_QUALITY = parseInt(core.getInput('avifQuality')) || 75

Expand Down
Loading
⚔