#!/bin/bash SCRIPT_DIR=$( cd -- "$( dirname -- "${BASH_SOURCE[0]}" )" &> /dev/null && pwd ) WORKING=$PWD echo "file:///$SCRIPT_DIR/note.html" firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/ns1.png" "file:///$SCRIPT_DIR/note.html" convert "ns1.png" -fuzz 12% -transparent "#00ff00" "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 ns2.png "n$i.png" rm ns1.png ns2.png