5 lines
286 B
Bash
Executable File
5 lines
286 B
Bash
Executable File
#!/bin/bash
|
|
# shot.sh page.html out.png width height
|
|
in=$(realpath "$1"); out=$(realpath -m "$2")
|
|
google-chrome --headless=new --disable-gpu --hide-scrollbars --allow-file-access-from-files --virtual-time-budget=1500 --window-size=$3,$4 --screenshot="$out" "file://$in" >/dev/null 2>&1
|