Page 1 of 1

Re: text from a file

Posted: 2008-02-19T18:45:19-07:00
by fmw42
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

Re: text from a file

Posted: 2008-02-20T18:19:29-07:00
by anthony
String arguments can be read DIRECTLY from a file using "@filename" in label: caption: -annotate and -draw.

See IM examples, Text to Image handling
http://imagemagick.org/Usage/text/