Diff: Help/text2pngPlugin

Differences between current version and predecessor to the previous major change of Help/text2pngPlugin.

Other diffs: Previous Revision, Previous Author

Newer page: version 6 Last edited on 17 January 2022 3:00 by harold
Older page: version 5 Last edited on 9 September 2007 0:16 by harold Revert
@@ -1,49 +1,71 @@
-Convert text into a png image using GD without using [WikiPluginCached| Help:WikiPlugin].  
-The images are stored in a private <PHPWIKI_DIR>/images/<LANG> subdirectory instead, 
+Convert text into a png image using GD without using [[ Help:WikiPlugin|WikiPluginCached] ].  
+The images are stored in a private <PHPWIKI_DIR>/images/ 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  
-<verbatim>  
- <?plugin text2png text ="some text" ?>  
-</verbatim>  
+== Usage ==  
  
-! Arguments  
+{{{  
+<<text2png text="some text">>  
+}}}  
  
-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  
+== Arguments ==  
  
+{| class="bordered"  
+|-  
+! Argument  
+! Description  
+! Default value  
+|-  
+| **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 
+=== Configurable Options ===  
  
 See the sourcecode. You'd probably need to adjust $ttfont and text2png_debug. 
  
-! Example 
+== Example ==  
  
-<verbatim>  
-<?plugin text2png text='Hello WikiWorld!' ? >  
-</verbatim >  
-would produce:  
-<?plugin text2png text='Hello WikiWorld!' ?>  
+{{{  
+<< text2png text='Hello WikiWorld!'>>  
+}}}  
  
-! See Also  
-  
- Help:TeX2PngPlugin, Help:TexToPngPlugin 
+== See Also ==  
+* [[ Help:TeX2pngPlugin]]  
+* [[ Help:TexToPngPlugin]]  
  
+<noinclude>  
 ---- 
-PhpWikiDocumentation Help:WikiPlugin  
+[[ PhpWikiDocumentation]] [[CategoryWikiPlugin]]  
+</noinclude>  

current version

Convert text into a png image using GD without using WikiPluginCached. The images are stored in a private <PHPWIKI_DIR>/images/ 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

<<text2png text="some text">>

Arguments

Argument

Description

Default value

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

<<text2png text='Hello WikiWorld!'>>

See Also