Web Screenshot Plugin Issue #1286
-
Using the .yml filename: Screenshot
on:
schedule: [{cron: "0 0 * * 0"}]
workflow_dispatch:
push: {branches: ["master", "main"]}
jobs:
web-screenshot:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: lowlighter/metrics@latest
with:
filename: site.screenshot.svg
token: NOT_NEEDED
# Options
template: classic
base: ""
plugin_screenshot: yes
plugin_screenshot_background: yes
plugin_screenshot_selector: body
plugin_screenshot_title: Inimicalpart.com
plugin_screenshot_url: https://inimicalpart.com README.md<img src="/site.screenshot.svg" alt="inimicalpart.com"> Expected ResultActual Result |
Beta Was this translation helpful? Give feedback.
Answered by
lowlighter
Nov 20, 2022
Replies: 1 comment 3 replies
-
Hi 👋 ! It'll be fixed by 7d7e9d6 on The issue was that it was only listening for the "onload" event so it was taking the screenshot a bit too early. I also added: So if you need to change the scale of the viewport to make it a bit bigger you can easily do it by adding plugin_screenshot.viewport: |
{"width":500, "height":200} |
Beta Was this translation helpful? Give feedback.
3 replies
Answer selected by
1RB
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Hi 👋 !
It'll be fixed by 7d7e9d6 on
@master
/@main
once the rebuild completeThe issue was that it was only listening for the "onload" event so it was taking the screenshot a bit too early.
I also added:
So if you need to change the scale of the viewport to make it a bit bigger you can easily do it by adding
Which looks like this: