From 1d9d19797e60b2c0b2dc3b0e1b9dbb57ca62d0d4 Mon Sep 17 00:00:00 2001 From: Florian Schlegel Date: Sun, 4 Sep 2016 14:53:08 +0200 Subject: [PATCH] =?UTF-8?q?=C3=BCberfl=C3=BCssiges=20Zeichen=20entfernt?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- px6_convert.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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