<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<link rel="home" title="HomePage" href="HomePage.html" />
<link rel="help" title="HowToUseWiki" href="HowToUseWiki.html" />
<link rel="copyright" title="GNU General Public License" href="http://www.gnu.org/copyleft/gpl.html#SEC1" />
<link rel="author" title="The PhpWiki Programming Team" href="http://phpwiki.org/ThePhpWikiProgrammingTeam" />
<meta http-equiv="Content-Style-Type" content="text/css" />
<meta http-equiv="Content-Language" content="en" />
<meta name="robots" content="noindex,nofollow" />
<meta name="language" content="en" />
<meta name="document-type" content="Public" />
<meta name="document-rating" content="General" />
<meta name="generator" content="PhpWiki" />
<meta name="PHPWIKI_VERSION" content="1.3.14" />

<base href="../" />
<link rel="stylesheet" type="text/css" charset="iso-8859-1" href="phpwiki-printer.css" />
<title>PhpWiki - Help  /  text 2 png Plugin</title>
</head>
<body>

<div id="header">
  
<!-- Page title -->
<h1>Help  /  text 2 png Plugin</h1>
</div>
<div id="content">



<div class="wikitext"><p class="tightenable top">Convert text into a png image using GD without using <a href="Help/WikiPlugin" class="named-interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />WikiPluginCached</span></a>.
The images are stored in a private &lt;PHPWIKI_DIR&gt;/images/&lt;LANG&gt; subdirectory instead,
which are not timestamp checked at all. Delete the .png file(s) if you change anything.</p>
<p class="tightenable">This is a really simple and stupid plugin, which might need some work.</p>
<h4>Usage</h4>
<pre class="tightenable top">
  &lt;?plugin text2png text=&quot;some text&quot; ?&gt;</pre>
<h4>Arguments</h4>
<dl><dt class="tightenable bottom">text</dt>
<dd class="tightenable top bottom">some text to display</dd>
<dt class="tightenable top bottom">lang</dt>
<dd class="tightenable top bottom">language subdirectory</dd>
<dt class="tightenable top bottom">_force</dt>
<dd class="tightenable top bottom">set to 1 to recreate the image</dd>
<dt class="tightenable top bottom">fontsize</dt>
<dd class="tightenable top bottom">18. with GD1 it's the pixelsize, with GD2 the pointsize</dd>
<dt class="tightenable top bottom">with_shadow</dt>
<dd class="tightenable top bottom">1</dd>
<dt class="tightenable top bottom">fontcolor</dt>
<dd class="tightenable top bottom"><ol><li class="tightenable top bottom">000000</li>
</ol>
</dd>
<dt class="tightenable top bottom">shadowcolor</dt>
<dd class="tightenable top bottom"><ol><li class="tightenable top bottom">AFAFAF</li>
</ol>
</dd>
<dt class="tightenable top bottom">backcolor</dt>
<dd class="tightenable top"><ol><li class="tightenable top bottom">ffffff</li>
</ol>
</dd>
</dl>
<h4>Configurable Options</h4>
<p class="tightenable">See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.</p>
<h4>Example</h4>
<pre class="tightenable bottom">
&lt;?plugin text2png text='Hello WikiWorld!' ?&gt;</pre>
<p class="tightenable top bottom">would produce:</p>
<div class="plugin tightenable top" id="text2pngPlugin"><img src="http://192.168.123.2/phpwiki/uploads/text2png-image//Hello%2BWikiWorld%2521.png" alt="Hello WikiWorld!" title="&quot;Hello WikiWorld!&quot; produced by text2png" /></div>
<h4>See Also</h4>
<p class="tightenable"><a href="Help/TeX2PngPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">TeX2PngPlugin</span></a>, <a href="Help/TexToPngPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">TexToPngPlugin</span></a></p>
<hr />
<p class="tightenable top bottom"><a href="PhpWikiDocumentation.html" class="wiki">PhpWikiDocumentation</a> <a href="Help/WikiPlugin" class="interwiki"><span style="white-space: nowrap"><img src="images/interwiki.png" alt="" class="linkicon" border="0" />Help:</span><span class="wikipage">WikiPlugin</span></a></p>
</div>

<div id="footer">  <hr class="printer" noshade="noshade" />
<p class="editdate">Owner: &quot;admin&quot;  Last edited on August 14, 2007  7:11 am by &quot;The PhpWiki programming team&quot;</p>
</div>

</div>
<!-- Add your Disclaimer here -->
</body>
</html>
