don't trim, more platforms

blender wants to scale to fit and idk what the FUCK its doing about image anchoring
This commit is contained in:
adam 2024-06-05 23:25:37 -04:00
parent 379a99857d
commit 367c3ccba8
4 changed files with 20 additions and 1 deletions

View File

@ -32,6 +32,21 @@ while read p || [[ -n $p ]]; do
echo "fandom wiki!" echo "fandom wiki!"
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- ) FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
sed -i 's/\[platform img\]/<img class="src" src="Fandom.png" \/>/' "$SCRIPT_DIR/credit2.html" sed -i 's/\[platform img\]/<img class="src" src="Fandom.png" \/>/' "$SCRIPT_DIR/credit2.html"
elif [[ "${FIELDS[1]}" =~ ^"[github]/" ]]
then
echo "github!"
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
sed -i 's/\[platform img\]/<img class="src" src="github.png" \/>/' "$SCRIPT_DIR/credit2.html"
elif [[ "${FIELDS[1]}" =~ ^"[mastodon]/" ]]
then
echo "mastodon!"
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 12- )
sed -i 's/\[platform img\]/<img class="src" src="mastodon.svg" \/>/' "$SCRIPT_DIR/credit2.html"
elif [[ "${FIELDS[1]}" =~ ^"[twitch]/" ]]
then
echo "twitch!"
FIELDS[1]=$( echo "${FIELDS[1]}" | cut -c 10- )
sed -i 's/\[platform img\]/<img class="src" src="twitch.png" \/>/' "$SCRIPT_DIR/credit2.html"
else else
echo "who?!" echo "who?!"
sed -i 's/\[platform img\]//' "$SCRIPT_DIR/credit2.html" 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" echo "file:///$SCRIPT_DIR/credit2.html"
firefox -P screenshitter --headless --window-size 3840,2160 --screenshot "$WORKING/cs1.png" "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 "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" rm cs1.png cs2.png "$SCRIPT_DIR/credit2.html"
done < $1 done < $1

BIN
crediting/github.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 20 KiB

1
crediting/mastodon.svg Normal file
View File

@ -0,0 +1 @@
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 448 512"><!--! Font Awesome Free 6.2.1 by @fontawesome - https://fontawesome.com License - https://fontawesome.com/license/free (Icons: CC BY 4.0, Fonts: SIL OFL 1.1, Code: MIT License) Copyright 2022 Fonticons, Inc. --><path d="M433 179.11c0-97.2-63.71-125.7-63.71-125.7-62.52-28.7-228.56-28.4-290.48 0 0 0-63.72 28.5-63.72 125.7 0 115.7-6.6 259.4 105.63 289.1 40.51 10.7 75.32 13 103.33 11.4 50.81-2.8 79.32-18.1 79.32-18.1l-1.7-36.9s-36.31 11.4-77.12 10.1c-40.41-1.4-83-4.4-89.63-54a102.54 102.54 0 0 1-.9-13.9c85.63 20.9 158.65 9.1 178.75 6.7 56.12-6.7 105-41.3 111.23-72.9 9.8-49.8 9-121.5 9-121.5zm-75.12 125.2h-46.63v-114.2c0-49.7-64-51.6-64 6.9v62.5h-46.33V197c0-58.5-64-56.6-64-6.9v114.2H90.19c0-122.1-5.2-147.9 18.41-175 25.9-28.9 79.82-30.8 103.83 6.1l11.6 19.5 11.6-19.5c24.11-37.1 78.12-34.8 103.83-6.1 23.71 27.3 18.4 53 18.4 175z"/></svg>

After

Width:  |  Height:  |  Size: 906 B

BIN
crediting/twitch.png Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 8.2 KiB