Dear Front End Devs,
Is there a trivial way to programmatically take a screenshot of a fully rendered page, meaning, exactly what the user sees? Currently fighting SVG and Canvas and there's a catch somewhere...
#layweb
cc @paul_irish @rem @BrendanEich
-
Show this thread
-
Replying to @joemccann @paul_irish and
https://calibreapp.com/features might do the trick
1 reply 0 retweets 2 likes -
Replying to @brianleroux @paul_irish and
Interesting approach. I suppose my scenario is different. Load a page. Enter input. API call. Render SVG chart. Screenshot. Maybe that'll work?
2 replies 0 retweets 0 likes -
Replying to @joemccann @brianleroux and
Also, the page is authenticated using AWS Cognito auth headers that need to be refreshed.
1 reply 0 retweets 0 likes -
Replying to @joemccann @paul_irish and
If a third party is outs I'd probably just do the puppeteer lambda dance. It's a bit fucked up to setup because size limits but probably easier now than it was. I don't use cognito buuut it should be possible..
1 reply 0 retweets 1 like -
Replying to @brianleroux @paul_irish and
seems OVERLY complicated. =) I'm running a local web server and just want to take a screenshot with the click of a button...can't believe I can't do this!
2 replies 0 retweets 0 likes -
Replying to @joemccann @brianleroux and
Do you control the browser in question? Can you install extensions? Can you send command-line args?
1 reply 0 retweets 0 likes -
Replying to @slightlylate @brianleroux and
1.) Yes. 2.) Yes. 3.) Yes. Running locally currently, which is fine for now, but ultimately would like to deploy this to a production server.
2 replies 0 retweets 0 likes
Like Remy said, you want puppeteer if it's going to be anything but local
Loading seems to be taking a while.
Twitter may be over capacity or experiencing a momentary hiccup. Try again or visit Twitter Status for more information.
& Web Standards TL; Blink API OWNER
Named PWAs w/
DMs open. Tweets my own; press@google.com for official comms.