diff --git a/bin/generationlib b/bin/generationlib index a381d67..f3e6a3a 100755 --- a/bin/generationlib +++ b/bin/generationlib @@ -9,7 +9,7 @@ Usage: `basename $0` [-h] [-i] [-j nb_jobs] command arg_list -h Shows this help -c give the path to the cfg file -i give the path of the svg files without the last / - -k chek if the jpg already exist + -k check if the jpg already exist -b set the background to transparent -s set the sleeptime while there are too many simultanious jobs -j Set number of simultanious jobs. Default is 2 @@ -124,7 +124,7 @@ do echo $PIC_NAME exists else RESIZE="${width}x${height}" - SWITCHES="-density $density $BACKGROUND$INPUT_FILE/$ID -resize $RESIZE $FILE_PATH" + SWITCHES="-density $density"'x'"$density $BACKGROUND$INPUT_FILE/$ID -resize $RESIZE $INPUT_FILE/$PIC_NAME.$format" CMDLINE="$CMD $SWITCHES" echo $CMDLINE (echo $ID; $CMDLINE) & diff --git a/cfg/punkteraetsel.cfg b/cfg/punkteraetsel.cfg index 8aa31da..ef25019 100644 --- a/cfg/punkteraetsel.cfg +++ b/cfg/punkteraetsel.cfg @@ -8,7 +8,7 @@ # width=190mm height=898 width=2776 -#background=Karo.png +background=Karo.png # 0,352775 * pixellänge[bei 72dpi] = länge[mm] # -> 2,83466799 pixel entsprechen 10 mm # -> 1000 pixel mit 72dpi entsprechen 352,78 mm diff --git a/in/test.csv b/in/test.csv index 2303e92..6e25d19 100644 --- a/in/test.csv +++ b/in/test.csv @@ -1,6 +1,7 @@ Kennummer;Name -001;Au +001;Silke 002;Rau 003;Lux 004;May -005;Johnson-Kronh-Wattenberg +005;Deutsche +006;Silverkropp diff --git a/libs/piccreate.py b/libs/piccreate.py index e58b27e..0d09be5 100644 --- a/libs/piccreate.py +++ b/libs/piccreate.py @@ -174,7 +174,6 @@ class Word: if params['counter_replace']: xn = g.GetAttribute('npattern') for i in range(1, int(xn)+1): - counter = counter + 1 content['x'+str(i)] = counter svgstr = svgstr + g.GetSVG(content) @@ -350,7 +349,6 @@ def main( config ): del content['firstrow'] del content['row'] pic_path = os.path.join(out_path, filename+'.svg') - create_picture(config, fontinfos, content, pic_path)