diff options
Diffstat (limited to 'hyperize.sh')
| -rwxr-xr-x | hyperize.sh | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/hyperize.sh b/hyperize.sh index 8ee4a34..1cbf2c0 100755 --- a/hyperize.sh +++ b/hyperize.sh | |||
| @@ -23,7 +23,7 @@ do | |||
| 23 | wait -n | 23 | wait -n |
| 24 | done | 24 | done |
| 25 | offset=${shakeOffsets[counter-1]} | 25 | offset=${shakeOffsets[counter-1]} |
| 26 | file=`printf "export_tmp/%s.png" $counter` | 26 | file=`printf "export_tmp/%s_raw.png" $counter` |
| 27 | inkscape -z -e $file -a $offset $SOURCESVG & | 27 | inkscape -z -e $file -a $offset $SOURCESVG & |
| 28 | ((counter++)) | 28 | ((counter++)) |
| 29 | done | 29 | done |
| @@ -31,6 +31,18 @@ done | |||
| 31 | wait -n | 31 | wait -n |
| 32 | 32 | ||
| 33 | 33 | ||
| 34 | counter=1 | ||
| 35 | while [ $counter -le 75 ] | ||
| 36 | do | ||
| 37 | file=`printf "export_tmp/%s.png" $counter` | ||
| 38 | source=`printf "export_tmp/%s_raw.png" $counter` | ||
| 39 | pngquant -o $file $source & | ||
| 40 | ((counter++)) | ||
| 41 | done | ||
| 42 | |||
| 43 | wait -n | ||
| 44 | |||
| 45 | |||
| 34 | declare -a args | 46 | declare -a args |
| 35 | 47 | ||
| 36 | counter=1 | 48 | counter=1 |
| @@ -42,4 +54,4 @@ do | |||
| 42 | done | 54 | done |
| 43 | 55 | ||
| 44 | apngasm -o $TARGETSVG ${args[@]} | 56 | apngasm -o $TARGETSVG ${args[@]} |
| 45 | rm -f export_tmp/* | 57 | #rm -f export_tmp/* |
