From 679a5273e5faff6aa5bbd07bf2333ef34aed1e8d Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Wed, 12 May 2021 16:00:23 +0200 Subject: [PATCH 1/2] feat: add inputs.scale-factor and inputs.type --- action.yml | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/action.yml b/action.yml index 7a1d4e8..0d2bef1 100644 --- a/action.yml +++ b/action.yml @@ -8,6 +8,10 @@ inputs: description: 'The destination filename the captured website will be written to' required: false default: 'screenshot.png' + type: + description: 'Image type : png or jpeg' + required: false + default: 'png' delay: description: 'The number of seconds to wait after the page finished loading before capturing the screenshot' required: false @@ -20,6 +24,10 @@ inputs: description: 'Page width' required: false default: '1280' + scale-factor: + description: 'Webpage scale factor' + required: false + default: '2' outputs: path: description: 'The filesystem path to the website screenshot' From e6b9db07d6dd3fdb2fc595986011e0983f51045d Mon Sep 17 00:00:00 2001 From: Julien Bouquillon Date: Wed, 12 May 2021 17:16:53 +0200 Subject: [PATCH 2/2] docs: update readme --- README.md | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 05111a9..a78298f 100644 --- a/README.md +++ b/README.md @@ -34,8 +34,11 @@ _Most_ of the options listed [here](https://github.com/sindresorhus/capture-webs uses: swinton/screenshot-website@v1.x with: source: https://github.com/swinton/screenshot-website - destination: screenshot.png + destination: screenshot.jpeg + type: jpeg full-page: true + scale-factor: 0.5 + width: 1600 ``` ## Outputs