Shell scripting with variables / convert text
Posted: 2013-08-04T12:47:47-07:00
Hi, I'm quite new to this stuff.
I've got a webcam which produces jpg-files. These files should get a timestamp via the convert command. All work should be done in a shell script.
I tried on command line first:
This writes the actual time into "irt".
returns the error
convert.im6: non-conforming drawing primitive definition `text' @ error/draw.c/DrawImage/3158.
returns the error
convert.im6: non-conforming drawing primitive definition `irt' @ error/draw.c/DrawImage/3158.
What is wrong? Pls help!
Thanks,
I've got a webcam which produces jpg-files. These files should get a timestamp via the convert command. All work should be done in a shell script.
I tried on command line first:
Code: Select all
irt=`date +%e.' '%B' '%Y' '%H:%M' Uhr'`
Code: Select all
> echo $irt
4. August 2013 21:41 Uhr
Code: Select all
convert image1t.jpg -font Kievit.ttf -fill white -pointsize 20 -draw "text 20,720 $irt" image1s.jpg
returns the error
convert.im6: non-conforming drawing primitive definition `text' @ error/draw.c/DrawImage/3158.
Code: Select all
convert image1t.jpg -font Kievit.ttf -fill white -pointsize 20 -draw 'text 20,720 $irt' image1s.jpg
convert.im6: non-conforming drawing primitive definition `irt' @ error/draw.c/DrawImage/3158.
What is wrong? Pls help!
Thanks,