Page 1 of 1

Posted: 2006-03-19T18:33:41-07:00
by anthony
-annotate -90x-90 'text'

will draw the text vertically. Or you can create a label: or caption:
then -rotate -90 to make the text vertical.

Posted: 2006-03-20T00:42:28-07:00
by anthony
Oh... Well try adding a newline escape between letters!

convert -pointsize 48 label:'A\nB\nC\nD\nE' vertical.png

Posted: 2006-03-23T17:24:38-07:00
by anthony
First, I am not a PHP IM user. so I can't give you direct PHP source. Second we are not going to do all the work for you. It will be up to you to figure out exactly what you want and code it in PHP. Geting it working on the command line will let you fintune things first, then you can encode each operation into the PHP API, or have the PHP call IM commands (though that has its own set of problems).

The basic solution is to crate a label of the vertically appended text in the color wanted, on a transparency canvas, then overlay it with a 'East' gravity setting.

Drawing the text on a transparent canvas in this way is the most versitile as you can further modify the text before overlaying it in lots of ways. See Compound Font Effects for suggestions and examples... ... ck6/fonts/

I am sorry I can't be more help. perhaps others will be willing. I myself am getting ready to do on a european vacation for the whole of April, so I will not be around much after this next week.

If you use -annotate instead of label: you can draw the text more directly with extra controls like outline stroking. However you may have to do this on a larger transparent canvas then trim it down before overlaying.

For lots of examples of converting text to images see ... ick6/text/