Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
46 lines (37 sloc) 1.4 KB
Red [
Title: "take-screenshot.red"
]
Article: [
Title: {Take Screenshot with Headless Chrome}
Source: [
.title: {ReAdABLE Source [(What is the ReAdABLE Human Format?)](http://readablehumanformat.com)}
.text: {[http://mycodesnippets.space/headlesschrome/take-screenshot.red](https://github.com/lepinekong/mycodesnippets/blob/master/headlesschrome/take-screenshot.red)
}
.Published-Url: http://mycodesnippets.space/headlesschrome/take-screenshot
]
take-screenshot: [
.title: {using --screenshot=somepath}
.text: {In command line type for example:}
.code: {
chrome --headless --disable-gpu --screenshot="C:\test\screen.png" "http://mycodesnippets.space/"
}
.note: {Don't forget to specify a path or it may not work.}
]
take-screenshot: [
.title: {with --window-size=width,height:}
.text: {type for example --window-size=1280,1696:}
.code: {
chrome --window-size=1280,1696 --screenshot="C:\test\screen.png" "http://mybookmarks.space/" --headless --disable-gpu
}
.text: {output:}
.image: https://i.imgur.com/GKVgUSR.png
]
References: [
.title: {References:}
.links: [
"developers.google.com" https://developers.google.com/web/updates/2017/04/headless-chrome
]
]
]
do read http://readablehumanformat.com/lib.red
markdown-gen