3 ms·
not javascript, but screenshots work best - other approaches suffer from css and rendering bugs. best way is to just use your browser in headless mode from the
by FigmentEngine 7y ago
not javascript, but screenshots work best - other approaches suffer from css and rendering bugs.
best way is to just use your browser in headless mode from the command line. you can do a screenshot, and specify the window size.
https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Headless_mode https://developer.mozilla.org/en-US/docs/Mozilla/Firefox/Hea...
https://developers.google.com/web/updates/2017/04/headless-chrome https://developers.google.com/web/updates/2017/04/headless-c...
and in dev panel
https://developer.mozilla.org/en-US/docs/Tools/Taking_screenshots https://developer.mozilla.org/en-US/docs/Tools/Taking_screen...