update box art

This commit is contained in:
4am 2022-08-20 23:42:50 -04:00
parent 7c0d7540f8
commit fbc3b930e7
58 changed files with 54 additions and 4 deletions

35
bin/forevershr.sh Executable file
View File

@ -0,0 +1,35 @@
#!/bin/bash
# directory of PNG files (assume they are properly sized and named)
PNGS="$HOME/Dropbox/a2/4cade/artwork/cropped-and-named-320x200/_4sports"
# Python 3
export PYTHON="python"
# https://github.com/KrisKennaway/ii-pix/
export CONVERT_PY="$HOME/Documents/a2/ii-pix/convert.py"
# directories within Total Replay repository
export SHR_SCORES="./res/ARTWORK.SHR.SCORES"
export SHR_UNCOMPRESSED="./res/ARTWORK.SHR.UNCOMPRESSED"
# convert.py flags:
# --no-show-output to suppress focus-stealing popup window during conversion
# --no-save-preview to suppress saving -preview.png file
# --fixed-colours=1 to prevent visual glitches during transition from black
# --show-final-score to get score so the score matching can work
while true; do
parallel '
tmp=$(mktemp)
newscore=$("$PYTHON" "$CONVERT_PY" shr --no-show-output --no-save-preview --fixed-colours=1 --show-final-score {} "$tmp" | grep FINAL_SCORE | cut -d":" -f2)
oldscore=$(<"$SHR_SCORES"/{/.})
if [ -z "$oldscore" ]; then
oldscore=10000
fi
if (( $(echo "$newscore < $oldscore" | bc) )); then
cp "$tmp" "$SHR_UNCOMPRESSED/"{/.}
echo "$newscore" > "$SHR_SCORES/"{/.}
fi
rm "$tmp"' ::: "$PNGS"/*.png
done

View File

@ -1 +1 @@
118.4183059321748
118.31095755470594

View File

@ -1 +1 @@
442.4742780524651
433.3690735982368

View File

@ -0,0 +1 @@
378.0825620390625

View File

@ -1 +1 @@
640.4267337791725
639.7921859387318

View File

@ -0,0 +1 @@
60.703603292915716

View File

@ -0,0 +1 @@
311.9758267169848

View File

@ -0,0 +1 @@
278.4427650714732

View File

@ -1 +1 @@
424.81889155735087
419.9990476697459

View File

@ -0,0 +1 @@
265.9379601737052

View File

@ -0,0 +1 @@
382.78291085848053

View File

@ -0,0 +1 @@
298.6764002812424

View File

@ -0,0 +1 @@
291.0425311807241

View File

@ -0,0 +1 @@
203.36070788075392

View File

@ -0,0 +1 @@
234.9604972580183

View File

@ -0,0 +1 @@
99.74319798241757

View File

@ -0,0 +1 @@
317.67105799746304

View File

@ -0,0 +1 @@
399.6469728119406

View File

@ -0,0 +1 @@
370.46139791376936

View File

@ -0,0 +1 @@
302.09757325846147

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.