17 lines
755 B
Bash
Executable File
17 lines
755 B
Bash
Executable File
#!/bin/bash
|
|
|
|
SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd )
|
|
WORKING=$PWD
|
|
|
|
head -n 13 "$SCRIPT_DIR/notetemplate.html" >"$SCRIPT_DIR/note.html"
|
|
echo $@ >>"$SCRIPT_DIR/note.html"
|
|
tail -n 5 "$SCRIPT_DIR/notetemplate.html" >>"$SCRIPT_DIR/note.html"
|
|
|
|
firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/ns1.png" "file:///$SCRIPT_DIR/note.html"
|
|
convert "$WORKING/ns1.png" -fuzz 12% -transparent "#00ff00" "$WORKING/ns2.png"
|
|
#convert ns2.png -trim "n$i.png"
|
|
# blender wants to scale to fit,
|
|
# and if you want a 1:1 scale image i don't know what the *fuck* it's doing with an origin point.
|
|
convert $WORKING/ns2.png "$WORKING/note.png"
|
|
rm "$WORKING/ns1.png" "$WORKING/ns2.png" "$SCRIPT_DIR/note.html"
|