Page 1 of 1
Need help with shape and text file
Posted: 2009-12-06T11:13:30-07:00
by imagewinter
Need help with shape and text file. I am trying to draw a circle in the background while have text from a text file on the foreground overlapping it. But no matter what I do, the circle always end up on the foreground covering the text. Anyone know the proper code?
Again, using a text file. Not regular text. I have no problem getting regular text to work. It is the "text:file" option combined with the -draw shape option that I can not get to work. Please help.
Re: Need help with shape and text file
Posted: 2009-12-06T15:18:23-07:00
by fmw42
try either label:@file or caption:@file
see example at
http://www.imagemagick.org/Usage/text/#label_lines
Re: Need help with shape and text file
Posted: 2009-12-07T06:41:20-07:00
by imagewinter
I tried
Code: Select all
cat file | convert -size resolution label:@- image.gif
and it gave me a very bad result. I can not even make out what it is since it looks like a thumbnail of a text file. I had to use the -size because it is asking for one. And no matter what size I enter, it would still appear as a thumbnail picture.
I can not use label:@file because it would just give me an image with the word "@file" printed on it.
The caption:@file sort of worked, but it failed to recognize the returns and extra spaces. There is like over 30 returns, and many more extra spaces.
I need a code that will paste the text in the text file as as-is/wysiwyg and have the shape not overlap it. So far, only text:file would do that. But the shape keeps staying on top no matter where I put the -draw in the command line.
Coding in the lines of the text individually with "label" is not practical since it is a full page.