diff --git a/crediting/credit.sh b/crediting/credit.sh
index b226ff1..1b4b038 100755
--- a/crediting/credit.sh
+++ b/crediting/credit.sh
@@ -32,6 +32,21 @@ while read p || [[ -n $p ]]; do
echo "fandom wiki!"
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
sed -i 's/\[platform img\]/
/' "$SCRIPT_DIR/credit2.html"
+ elif [[ "${FIELDS[1]}" =~ ^"[github]/" ]]
+ then
+ echo "github!"
+ FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
+ sed -i 's/\[platform img\]/
/' "$SCRIPT_DIR/credit2.html"
+ elif [[ "${FIELDS[1]}" =~ ^"[mastodon]/" ]]
+ then
+ echo "mastodon!"
+ FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 12- )
+ sed -i 's/\[platform img\]/
/' "$SCRIPT_DIR/credit2.html"
+ elif [[ "${FIELDS[1]}" =~ ^"[twitch]/" ]]
+ then
+ echo "twitch!"
+ FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
+ sed -i 's/\[platform img\]/
/' "$SCRIPT_DIR/credit2.html"
else
echo "who?!"
sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html"
@@ -42,6 +57,9 @@ while read p || [[ -n $p ]]; do
echo "file:///$SCRIPT_DIR/credit2.html"
firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/cs1.png" "file:///$SCRIPT_DIR/credit2.html"
convert "cs1.png" -fuzz 12% -transparent "#00ff00" "cs2.png"
- convert cs2.png -trim "c$i.png"
+ #convert cs2.png -trim "c$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 cs2.png "c$i.png"
rm cs1.png cs2.png "$SCRIPT_DIR/credit2.html"
done < $1
\ No newline at end of file
diff --git a/crediting/github.png b/crediting/github.png
new file mode 100644
index 0000000..dd3ee74
Binary files /dev/null and b/crediting/github.png differ
diff --git a/crediting/mastodon.svg b/crediting/mastodon.svg
new file mode 100644
index 0000000..586c654
--- /dev/null
+++ b/crediting/mastodon.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/crediting/twitch.png b/crediting/twitch.png
new file mode 100644
index 0000000..35ae325
Binary files /dev/null and b/crediting/twitch.png differ