Page 1 of 1

Combine adjust text to width with setting text color

Posted: 2010-03-27T20:51:52-07:00
by microbe
Hey folks,

I can get IM to convert text to an image and
a) let imagemagick auto adjust the pointsize so that the text fits
or b) adjust the color of the text stroke and fill.

Note the OR...I can't manage to get it to work with both in the same image.

If I have the width thingy right I can't seem to do the color and if I draw the stroke setting the color, I can't get the width to work.

I have searched and searched (which is how I lerned to do both of the examples above) but I can't find an example of them combined.

Does someone have an example of how to do this?

Many thanks in advance.

Re: Combine adjust text to width with setting text color

Posted: 2010-03-27T22:07:34-07:00
by fmw42
see any of the methods: label:, caption:, -draw, -annotate

lots of examples at

http://www.imagemagick.org/Usage/text/

If that does not help, post your command line so that others can tell you what is wrong.

What version of IM are you using? Perhaps, if you have a very old version, you might try to upgrade.

Re: Combine adjust text to width with setting text color

Posted: 2010-03-27T22:35:52-07:00
by microbe
Ahhh...I had seen that but was getting overloaded with information.

The trick was to use label: instead of just adding the text.

Thanks for the hint.