diff --git a/px6_convert.sh b/px6_convert.sh index e2bd406..8a914ea 100755 --- a/px6_convert.sh +++ b/px6_convert.sh @@ -10,7 +10,7 @@ if [ "$OH" == "" ]; then OH=0; fi OPTIONS="-resize $W -set depth 8 -set colorspace RGB" #initial conversion -convert-im6 $OPTIONS "$INPUT" txt:- | awk -v ow=i"$OW" -v oh="$OH" 'match($0, /^([0-9]*),([0-9]*):.*#([0-9A-Fa-f]{6,8}) +r/, arr ){ print "PX " arr[1]+ow " " arr[2]+oh " " arr[3] }' > "$OUTPUT" +convert-im6 $OPTIONS "$INPUT" txt:- | awk -v ow="$OW" -v oh="$OH" 'match($0, /^([0-9]*),([0-9]*):.*#([0-9A-Fa-f]{6,8}) +r/, arr ){ print "PX " arr[1]+ow " " arr[2]+oh " " arr[3] }' > "$OUTPUT" echo optimizing >&2