use convert in script to create piclture abels with a space
Posted: 2011-09-06T06:47:48-07:00
I using convert in a shell (bash) script to create picture labels
the command I use in the script is
convert -background white -fill black -font DejaVu-Sans-Book -size 415x47 label:$NAME ./Images/NAME.jpg
If $NAME contains "Boer" then the line works correct.
If $NAME contains " Christabell Sunday" i get the following error messages
convert: unable to open image `Sunday': @ error/blob.c/OpenBlob/2498.
convert: no decode delegate for this image format `Sunday' @ error/constitute.c/ReadImage/532.
So I guess the question is how do I in a script generate a label texst from a variable with space's in it.
the command I use in the script is
convert -background white -fill black -font DejaVu-Sans-Book -size 415x47 label:$NAME ./Images/NAME.jpg
If $NAME contains "Boer" then the line works correct.
If $NAME contains " Christabell Sunday" i get the following error messages
convert: unable to open image `Sunday': @ error/blob.c/OpenBlob/2498.
convert: no decode delegate for this image format `Sunday' @ error/constitute.c/ReadImage/532.
So I guess the question is how do I in a script generate a label texst from a variable with space's in it.