3

I am using this command to generate the screenshot chrome --headless --disable-gpu --screenshot --window-size=1280,1696

It's generating the output in current directory with name screenshot.jpeg. I want to change the default output directory as well as output filename. Can somebody tell me the correct options I need to use?

1 Answers1

6

you can specify your filename in --screenshot option.

eg.,

chrome --headless --disable-gpu --screenshot=newfilename.png https://www.chromestatus.com/
Machavity
  • 30,841
  • 27
  • 92
  • 100