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.
Need help with shape and text file
- fmw42
- Posts: 25562
- Joined: 2007-07-02T17:14:51-07:00
- Authentication code: 1152
- Location: Sunnyvale, California, USA
Re: Need help with shape and text file
try either label:@file or caption:@file
see example at http://www.imagemagick.org/Usage/text/#label_lines
see example at http://www.imagemagick.org/Usage/text/#label_lines
-
- Posts: 15
- Joined: 2008-02-20T16:03:49-07:00
Re: Need help with shape and text file
I tried 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.
Code: Select all
cat file | convert -size resolution label:@- image.gif
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.