- Skalierung gemacht

This commit is contained in:
Michael Stangl
2012-08-17 03:04:15 +02:00
parent 730e2d2361
commit a2ddd04936
5 changed files with 132 additions and 50 deletions
+1 -8
View File
@@ -39,7 +39,6 @@ function checkqueue {
do
if [ ! -d /proc/$PID ] ; then
regeneratequeue # at least one PID has finished
echo $PID
break
fi
done
@@ -47,10 +46,7 @@ function checkqueue {
function cfg_parser {
INI_FILE=$1
SECTION=$2
echo $1
echo $2
eval `sed -n -e "/^\[$SECTION\]/,/^\s*\[/{/^[^;].*\=.*/p;}" < $INI_FILE`>> trr.txt
echo 'helololo'
}
function get_filepath {
# probiere alle möglichen Kombinationen wo das file stehen könnte je
@@ -139,19 +135,16 @@ check_params
echo $INPUT_FILE
for i in `ls $INPUT_FILE| grep .svg `
do
echo $i
echo $CHECKFILE
ID=`echo "$i" | sed -e 's/;.*//g'`
PIC_NAME=`echo "$i" | sed -e 's/.svg/.jpg/g'`
FILE_PATH=$INPUT_FILE/$PIC_NAME
if [ -s $FILE_PATH ] && [ $CHECKFILE -eq 1 ]
then
echo $PIC_NAME exists!
echo $PIC_NAME exists
else
RESIZE="${width}x${height}"
SWITCHES="-density $density $INPUT_FILE/$ID -resize $RESIZE $INPUT_FILE/$PIC_NAME"
CMDLINE="$CMD $SWITCHES"
echo $CMDLINE
(echo $ID; $CMDLINE) &
PID=$!