Anthony,

But the crux of the issue is that we have a "window" that the text  
needs to fit into.
I'd like to be able to allow the user to choose their text size as well.
The "window" I speak of is for a photo card so the text window is  
merged on to another image.
I can't have the text hanging off the image.
Auto fitting the text to the size won't work.  Changing the size won't  
work as there are hundreds of text window sizes.
Convert needs to "know" that the line won't fit and not generate it.

Am I going to have to custom write a patch to
leave off the line if it can't fully render within the sized image?

Thanks

Chris


Chris Ferry on  wrote...
| All,
| I'm trying to generate an image of text  provided by a text input  
form.
|
| Using the following convert command:
| /opt/ImageMagick-6.3.4/bin/convert -size 710x339 -background
| transparent -gravity north -fill "rgb(0, 190, 118)"  -font /opt/fonts/
| ARIAL.TTF -pointsize 46 -annotate +0+0 "01234567890123456789
| 0123456789
| 2
| 3
| 4
| 5
| 6
| 7
| 8
| 9"  /tmp/txt.png
|
| This creates an image with the all the text up to the last "6", but
| that "6" is cut off.
|
| How can I prevent convert from rendering text that is cut off?
|
Either remove   -size   or change it to   -size 710x
so that it will expand the height of the image to fit the text.

OR remove -pointsize  and liek IM size your text for 'best fit'

See IM examples, Text handling, Lables
    http://imagemagick.org/Usage/text/#label

Which goes through all this.
   Anthony Thyssen ( System Programmer )    <A.Thyssen at  
griffith.edu.au>
   
-----------------------------------------------------------------------------
   Don't explain computers to laymen.  Simpler to explain sex to a  
virgin.
                           --- Robert Heilein,  "The Moon is a Harsh  
Mistress"
   
-----------------------------------------------------------------------------
      Anthony's Home is his Castle     http://www.cit.gu.edu.au/ 
~anthony/

_______________________________________________
Magick-users mailing list
[email protected]
http://studio.imagemagick.org/mailman/listinfo/magick-users

Reply via email to