initiales commit
This commit is contained in:
commit
2ccc2b7f0d
4 changed files with 98 additions and 0 deletions
10
px6_convert.sh
Executable file
10
px6_convert.sh
Executable 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 {}'
|
Loading…
Add table
Add a link
Reference in a new issue