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 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'