Re: text from a file
Posted: 2008-02-19T18:45:19-07:00
I am no expert and have not verified any of these, but you can do
str=`cat textfile.txt`
Then try
convert -font helvetica -fill white -pointsize 80 -draw 'text 700,250 "$st" 172945.dpx 172945_new.cin
You can also try using -annotate 0 "$str"
or
composite label:"$str"
Putting double quotes around $str will keep each line separate (if you do echo "$str") whereas leaving off the quotes will run all the lines together into one string (if you do echo $str)
See http://www.imagemagick.org/Usage/annotating/#gravity
str=`cat textfile.txt`
Then try
convert -font helvetica -fill white -pointsize 80 -draw 'text 700,250 "$st" 172945.dpx 172945_new.cin
You can also try using -annotate 0 "$str"
or
composite label:"$str"
Putting double quotes around $str will keep each line separate (if you do echo "$str") whereas leaving off the quotes will run all the lines together into one string (if you do echo $str)
See http://www.imagemagick.org/Usage/annotating/#gravity