Need help with shape and text file

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
Post Reply
imagewinter
Posts: 15
Joined: 2008-02-20T16:03:49-07:00

Need help with shape and text file

Post 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.
User avatar
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

Post by fmw42 »

try either label:@file or caption:@file

see example at http://www.imagemagick.org/Usage/text/#label_lines
imagewinter
Posts: 15
Joined: 2008-02-20T16:03:49-07:00

Re: Need help with shape and text file

Post 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.
Post Reply