Hi all,<br><br>I use PHP and ImageMagick to create images  from dynamic text (stored in mySql).<br><br>Basically I&#39;ve got a php web page, from which I call a shell command that output a fixed width and height image, filled with text. <br>
The text
size vary to fill the whole image, so few words -&gt; bigger text, many words -&gt; smaller text. So you have always all your text
formatted in the same space, and you don&#39;t have to worry about carriage
return (it&#39;s all auto(image)magick)<br>
<br>The core of the sequence of command is:<br><br>[PHP code]<br>$command
= &quot;echo \&quot;&quot;. $text .&quot;\&quot; | convert  -channel RGBA -background none -font
&quot; . $fontfile .&quot; -fill white -size &quot;.$width.&quot;x&quot;.$height.&quot; caption:@- &quot;.
$<div id=":dw" class="ii gt">phisicalPathAndFileNameOfTheNewImageFile;<br>
      <br>echo exec($command);<br>[/PHP code]<br> 
<br>where the words preceded by &quot;$&quot; are variables.<br><br>After you run this command you&#39;ll find the image file ($phisicalPathAndFileNameOfTheNewImageFile).<br>In the image, the text is white (I use dark background in PD) and the background is transparent.<br>

<br>Then you can take it and use in PD.<br><br>Hope this helps. <br>Let me know if you want more details or screenshots - eg: php functions to fix the input text (addslashes etc...)<br><br>ciao, dario</div>