From 788d3147d9f4ee8b334bf603c10c81acdf61ae49 Mon Sep 17 00:00:00 2001 From: Feuerfuchs Date: Tue, 28 Jan 2020 18:19:26 +0100 Subject: New: a-loading boopfloof boopmelt boopmelthappy boopmlem cursedowo disgust fake googlycry googlymlem googlytrash nomcorndog reinderp signnou sweating trash whoaa yeet --- dundundun.sh | 27 +++++++++++++++++++++------ 1 file changed, 21 insertions(+), 6 deletions(-) (limited to 'dundundun.sh') diff --git a/dundundun.sh b/dundundun.sh index 7a63ea4..fc9b48d 100755 --- a/dundundun.sh +++ b/dundundun.sh @@ -13,10 +13,10 @@ mkdir -p export_tmp rm -f export_tmp/* -inkscape -z -e "export_tmp/1.png" `printf "%s1.svg" $SOURCEBASE` -inkscape -z -e "export_tmp/2.png" `printf "%s2.svg" $SOURCEBASE` -inkscape -z -e "export_tmp/3.png" `printf "%s3.svg" $SOURCEBASE` -inkscape -z -e "export_tmp/4.png" `printf "%s4.svg" $SOURCEBASE` +inkscape -z -e "export_tmp/1_raw.png" `printf "%s1.svg" $SOURCEBASE` +inkscape -z -e "export_tmp/2_raw.png" `printf "%s2.svg" $SOURCEBASE` +inkscape -z -e "export_tmp/3_raw.png" `printf "%s3.svg" $SOURCEBASE` +inkscape -z -e "export_tmp/4_raw.png" `printf "%s4.svg" $SOURCEBASE` counter=5 NUMPROCS=8 @@ -27,7 +27,7 @@ do wait -n done offset=${shakeOffsets[counter-5]} - file=`printf "export_tmp/%s.png" $counter` + file=`printf "export_tmp/%s_raw.png" $counter` source=`printf "%s4.svg" $SOURCEBASE` inkscape -z -e $file -a $offset $source & ((counter++)) @@ -36,6 +36,21 @@ done wait -n +counter=1 +while [ $counter -le 79 ] +do + while (( ${NUMJOBS@P} >= NUMPROCS )); do + wait -n + done + file=`printf "export_tmp/%s.png" $counter` + source=`printf "export_tmp/%s_raw.png" $counter` + pngquant -o $file $source & + ((counter++)) +done + +wait -n + + declare -a args args+=(export_tmp/1.png 50:50) args+=(export_tmp/2.png 12:50) @@ -50,4 +65,4 @@ do done apngasm -o $TARGETSVG ${args[@]} -rm -f export_tmp/* +#rm -f export_tmp/* -- cgit v1.3.1