diff --git a/title card/titlecard.sh b/title card/titlecard.sh new file mode 100755 index 0000000..f84ef06 --- /dev/null +++ b/title card/titlecard.sh @@ -0,0 +1,12 @@ +#!/bin/bash + +SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) +WORKING=$PWD + + +cp "$SCRIPT_DIR/titlecardtemplate.html" "$SCRIPT_DIR/titlecard.html" +head -n 23 "$SCRIPT_DIR/titlecardtemplate.html" >"$SCRIPT_DIR/titlecard.html" +echo $@ >>"$SCRIPT_DIR/titlecard.html" +tail -n 4 "$SCRIPT_DIR/titlecardtemplate.html" >>"$SCRIPT_DIR/titlecard.html" +firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/tc.png" "file:///$SCRIPT_DIR/titlecard.html" +rm "$SCRIPT_DIR/titlecard.html" diff --git a/title card/titlecardtemplate.html b/title card/titlecardtemplate.html new file mode 100644 index 0000000..b55c2ff --- /dev/null +++ b/title card/titlecardtemplate.html @@ -0,0 +1,28 @@ + +
+ + + +