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
  1. 000000
shadowcolor
  1. AFAFAF
backcolor
  1. 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!

See Also

Help:TeX2PngPlugin, Help:TexToPngPlugin


PhpWikiDocumentation Help:WikiPlugin

lib/plugin/text2png.php (In template 'body' < 'html'):125 Notice[8]: Undefined variable: l

lib/plugin/text2png.php (In template 'body' < 'html'):128 Notice[8]: Undefined variable: l

Valid XHTML 1.0! Valid CSS!
L'exécution de la page a pris real: 0,175, user: 0,080, sys: 0,020 seconds

Fatal Error:

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error

lib/plugin/text2png.php (In template 'body' < 'html'):220 Notice[1024]: Image chargée depuis le fichier cache : /homez.32/autonomie/www/wiki/uploadstext2png-image//Hello+WikiWorld%21.png



Erreur Fatale de PhpWiki

lib/WikiDB/backend/PearDB.php:1059 Error[256]: wikidb_backend_peardb_mysql: fatal database error


Fatal error: wikidb_backend_peardb_mysql: fatal database error DB Error: insufficient permissions (UPDATE session SET sess_data='wiki_user|O:9:\"_anonuser\":5:{s:7:\"_userid\";s:0:\"\";s:6:\"_level\";i:0;s:6:\"_prefs\";O:15:\"userpreferences\":1:{s:6:\"_prefs\";a:14:{s:6:\"userid\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:6:\"passwd\";O:15:\"_userpreference\":1:{s:13:\"default_value\";s:0:\"\";}s:9:\"autologin\";O:20:\"_userpreference_bool\":1:{s:13:\"default_value\";b:0;}s:5:\"email\";O:21:\"_userpreference_email\":1:{s:13:\"default_value\";s:0:\"\";}s:11:\"notifyPages\";O:22:\"_userpreference_notify\":1:{s:13:\"default_value\";s:0:\"\";}s:5:\"theme\";O:21:\"_userpreference_theme\":1:{s:13:\"default_value\";s:7:\"smaller\";}s:4:\"lang\";O:24:\"_userpreference_language\":1:{s:13:\"default_value\";s:2:\"fr\";}s:9:\"editWidth\";O:19:\"_userpreference_int\":3:{s:13:\"default_value\";d:80;s:7:\"_minval\";d:30;s:7:\"_maxval\";d:150;}s:11:\"noLinkIcons\";O:20:\"_userpreference_bool\":1:{s:13:\"default_va in /homez.32/autonomie/www/wiki/lib/WikiDB/backend/PearDB.php on line 1059