- merge
This commit is contained in:
+2
-2
@@ -9,7 +9,7 @@ Usage: `basename $0` [-h] [-i] [-j nb_jobs] command arg_list
|
|||||||
-h Shows this help
|
-h Shows this help
|
||||||
-c give the path to the cfg file
|
-c give the path to the cfg file
|
||||||
-i give the path of the svg files without the last /
|
-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
|
-b set the background to transparent
|
||||||
-s set the sleeptime while there are too many simultanious jobs
|
-s set the sleeptime while there are too many simultanious jobs
|
||||||
-j Set number of simultanious jobs. Default is 2
|
-j Set number of simultanious jobs. Default is 2
|
||||||
@@ -124,7 +124,7 @@ do
|
|||||||
echo $PIC_NAME exists
|
echo $PIC_NAME exists
|
||||||
else
|
else
|
||||||
RESIZE="${width}x${height}"
|
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"
|
CMDLINE="$CMD $SWITCHES"
|
||||||
echo $CMDLINE
|
echo $CMDLINE
|
||||||
(echo $ID; $CMDLINE) &
|
(echo $ID; $CMDLINE) &
|
||||||
|
|||||||
@@ -8,7 +8,7 @@
|
|||||||
# width=190mm
|
# width=190mm
|
||||||
height=898
|
height=898
|
||||||
width=2776
|
width=2776
|
||||||
#background=Karo.png
|
background=Karo.png
|
||||||
# 0,352775 * pixellänge[bei 72dpi] = länge[mm]
|
# 0,352775 * pixellänge[bei 72dpi] = länge[mm]
|
||||||
# -> 2,83466799 pixel entsprechen 10 mm
|
# -> 2,83466799 pixel entsprechen 10 mm
|
||||||
# -> 1000 pixel mit 72dpi entsprechen 352,78 mm
|
# -> 1000 pixel mit 72dpi entsprechen 352,78 mm
|
||||||
|
|||||||
+3
-2
@@ -1,6 +1,7 @@
|
|||||||
Kennummer;Name
|
Kennummer;Name
|
||||||
001;Au
|
001;Silke
|
||||||
002;Rau
|
002;Rau
|
||||||
003;Lux
|
003;Lux
|
||||||
004;May
|
004;May
|
||||||
005;Johnson-Kronh-Wattenberg
|
005;Deutsche
|
||||||
|
006;Silverkropp
|
||||||
|
|||||||
|
@@ -174,7 +174,6 @@ class Word:
|
|||||||
if params['counter_replace']:
|
if params['counter_replace']:
|
||||||
xn = g.GetAttribute('npattern')
|
xn = g.GetAttribute('npattern')
|
||||||
for i in range(1, int(xn)+1):
|
for i in range(1, int(xn)+1):
|
||||||
|
|
||||||
counter = counter + 1
|
counter = counter + 1
|
||||||
content['x'+str(i)] = counter
|
content['x'+str(i)] = counter
|
||||||
svgstr = svgstr + g.GetSVG(content)
|
svgstr = svgstr + g.GetSVG(content)
|
||||||
@@ -350,7 +349,6 @@ def main( config ):
|
|||||||
del content['firstrow']
|
del content['firstrow']
|
||||||
del content['row']
|
del content['row']
|
||||||
pic_path = os.path.join(out_path, filename+'.svg')
|
pic_path = os.path.join(out_path, filename+'.svg')
|
||||||
|
|
||||||
create_picture(config, fontinfos, content, pic_path)
|
create_picture(config, fontinfos, content, pic_path)
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user