title card
I like this method, it dumps it back where you are
This commit is contained in:
parent
19a744f967
commit
4f36624aa3
12
title card/titlecard.sh
Executable file
12
title card/titlecard.sh
Executable file
@ -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"
|
28
title card/titlecardtemplate.html
Normal file
28
title card/titlecardtemplate.html
Normal file
@ -0,0 +1,28 @@
|
|||||||
|
<html>
|
||||||
|
<head>
|
||||||
|
<style type="text/css">
|
||||||
|
body{
|
||||||
|
padding:0;
|
||||||
|
margin:0;
|
||||||
|
background-color: #333333;
|
||||||
|
}
|
||||||
|
div{
|
||||||
|
display:inline-flex;
|
||||||
|
}
|
||||||
|
.centerized{
|
||||||
|
color: #DEDEDE;
|
||||||
|
font-size: 8em;
|
||||||
|
display:block;
|
||||||
|
margin: auto;
|
||||||
|
font-family: "Roboto Slab";
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
</head>
|
||||||
|
<body>
|
||||||
|
<div style="width:3840; height:2160; margin:0">
|
||||||
|
<div class="centerized">
|
||||||
|
loading...
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</body>
|
||||||
|
</html>
|
Loading…
Reference in New Issue
Block a user