Page 1 of 1

Using Annotate Multiline and Color each line

Posted: 2009-10-16T05:49:29-07:00
by Tidus
Can annotate seperate every \n expression and give everyline a different font,size and color ?

Re: Using Annotate Multiline and Color each line

Posted: 2009-10-19T01:39:20-07:00
by Tidus
come on guys all of my works depends on it

Re: Using Annotate Multiline and Color each line

Posted: 2009-10-19T07:19:28-07:00
by magick
Can annotate seperate every \n expression and give everyline a different font,size and color ?
No. You need to use a separate -annotate option for each line and precede each -annotate option with the text attributes such as -font, -fill, etc.

Re: Using Annotate Multiline and Color each line

Posted: 2009-10-19T22:30:46-07:00
by anthony
Imagemagick is not a word processor. Though you can do the various aspects of one, it is not what it is designed for. For example see
Creating Lines of Mixed Font Styles
http://www.imagemagick.org/Usage/text/#mixed_font_lines

If you need that type of thing you are better off using something else to generate either postscript with the text formatting.

A good batch processing solution is TeX and the simplified wrapper around it LaTeX, This generates files (plain text) that can be converted to DVI and from their to images or postscript. Their is also a GUI interface known as LyX.

See A Complete Text Processing System
http://www.imagemagick.org/Usage/text/#tex

You could also look at HTML to Postscript converters, or word processor XML file converters. I would welcome a list of simpler alternative text to image processing methods, using ImageMagick or otherwise!

Re: Using Annotate Multiline and Color each line

Posted: 2009-10-20T08:23:17-07:00
by Tidus
I am trying to make my own shirtcity.com i have done so much with my amateur programming. Upload image, custom templates etc. I also did text on tshirt feature but its not complete until i did seperate the text and give them different colors.

what i want is : http://www.shirtcity.com
also this is the output of text on tshirt feature of shirtcity = Link is too long so click here to see

This is my prototype : http://tshirtcity.eu/index.php?option=c ... &Itemid=53 !

oh i forgot to mention but they also have if written text on textbox is longer then a limit it creates two border on the left and right side. I think its a bounding box with wordwrap thing used with imagemagick.

I also dont know what system they use for bending tshirt with other features for display.