initiales commit

This commit is contained in:
Florian Schlegel 2016-09-03 13:21:27 +02:00
commit 2ccc2b7f0d
4 changed files with 98 additions and 0 deletions

10
px6_convert.sh Executable file
View file

@ -0,0 +1,10 @@
#! /bin/bash
INPUT=$1
export OW=$2
export OH=$3
W=$4
if [ "$OW" == "" ]; then OW=0; fi
if [ "$OH" == "" ]; then OH=0; fi
convert-im6 -resize $W $INPUT txt:- | awk -v ow=$OW -v oh=$OH -F "[,: #]+" 'BEGIN {} NR>1 { print "PX " $1+ow " " $2+oh " " $7 } END {}'