Convert text into a png image using GD without using WikiPluginCached.
The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead,
which are not timestamp checked at all. Delete the .png file(s) if you change anything.
This is a really simple and stupid plugin, which might need some work.
Usage
<?plugin text2png text="some text" ?>
Arguments
- text
- some text to display
- lang
- language subdirectory
- _force
- set to 1 to recreate the image
- fontsize
- 18. with GD1 it's the pixelsize, with GD2 the pointsize
- with_shadow
- 1
- fontcolor
- 000000
- shadowcolor
- AFAFAF
- backcolor
- ffffff
Configurable Options
See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug.
Example
<?plugin text2png text='Hello WikiWorld!' ?>
would produce:
!["Hello WikiWorld!" produced by text2png Hello WikiWorld!](http://192.168.123.2/phpwiki/uploads/text2png-image//Hello%2BWikiWorld%2521.png)
See Also
Help:TeX2PngPlugin,
Help:TexToPngPlugin