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?
you can specify your filename in --screenshot
option.
eg.,
chrome --headless --disable-gpu --screenshot=newfilename.png https://www.chromestatus.com/
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With