Skip to content

Commit f325757

Browse files
authored
Merge pull request #353 from calibreapp/png-default-compress
😵‍💫 Alter PNG quality back to 80
2 parents 0ba98f1 + f7102d1 commit f325757

3 files changed

Lines changed: 4 additions & 7 deletions

File tree

README.md

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ Add the following arguments to the workflow definition to control compression se
7575
with:
7676
jpegQuality: '85'
7777
jpegProgressive: false
78-
pngQuality: '90'
78+
pngQuality: '80'
7979
webpQuality: '85'
8080
avifQuality: '75'
8181
```
@@ -84,7 +84,7 @@ with:
8484

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

@@ -304,6 +304,3 @@ Happy to hear you’re interested in contributing to Image Actions! Please find
304304
## 💼 License
305305
306306
This project is licensed under a [GNU General Public License](LICENSE).
307-
308-
309-

action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ inputs:
2020
pngQuality:
2121
description: "PNG quality level"
2222
required: false
23-
default: "90"
23+
default: "80"
2424

2525
webpQuality:
2626
description: "WEBP quality level"

src/constants.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ const REPO_DIRECTORY = process.env['GITHUB_WORKSPACE']
99

1010
const JPEG_QUALITY = parseInt(core.getInput('jpegQuality')) || 85
1111
const JPEG_PROGRESSIVE = core.getInput('jpegProgressive') === 'true'
12-
const PNG_QUALITY = parseInt(core.getInput('pngQuality')) || 90
12+
const PNG_QUALITY = parseInt(core.getInput('pngQuality')) || 80
1313
const WEBP_QUALITY = parseInt(core.getInput('webpQuality')) || 85
1414
const AVIF_QUALITY = parseInt(core.getInput('avifQuality')) || 75
1515

0 commit comments

Comments
 (0)