Strict Standards: Declaration of action_plugin_dlcount::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/dlcount/action.php on line 14

Strict Standards: Declaration of action_plugin_indexmenu::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/indexmenu/action.php on line 169

Strict Standards: Declaration of action_plugin_ipban::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/ipban/action.php on line 67

Strict Standards: Declaration of action_plugin_loglog::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/loglog/action.php on line 82

Strict Standards: Declaration of action_plugin_navi::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/navi/action.php on line 46

Strict Standards: Declaration of action_plugin_uparrow::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/uparrow/action.php on line 69

Strict Standards: Declaration of action_plugin_userspagecreate::register() should be compatible with DokuWiki_Action_Plugin::register($controller) in /home/www/wiki/lib/plugins/userspagecreate/action.php on line 97

Strict Standards: Declaration of cache_instructions::retrieveCache() should be compatible with cache::retrieveCache($clean = true) in /home/www/wiki/inc/cache.php on line 289

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/auth.php on line 312

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 71

Warning: Cannot modify header information - headers already sent by (output started at /home/www/wiki/lib/plugins/dlcount/action.php:14) in /home/www/wiki/inc/actions.php on line 154
Image call tag cmsimage.php [phpwcms-HowTo:wiki]

Strict Standards: Declaration of syntax_plugin_code::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/code/syntax.php on line 41

Strict Standards: Declaration of syntax_plugin_tip::render() should be compatible with DokuWiki_Syntax_Plugin::render($format, &$renderer, $data) in /home/www/wiki/lib/plugins/tip/syntax.php on line 38

Image call tag cmsimage.php

There is a uninversal methode by tag to display every picture with desired item and issue format.

For this the file img/cmsimage.php is used with a parameter set like WIDTHxHEIGHTxCROPxQUALITY/image-file-id.ext

 Long description:  img/cmsimage.php/WIDTHxHEIGHTxCROPxQUALITY/image-file-id.ext
 Short description: img/cmsimage.php/WxHxCxQ/image-file-id.ext
 Example-1:         img/cmsimage.php/100x100x1x90/1.jpg#
 Example-2:         img/cmsimage.php/100x150x0/1.jpg

Example 01:

<img src="<?=PHPWCMS_URL?>img/cmsimage.php/100x100x1x90/1.jpg" alt="my picture" />

→ This example extradites a image 100 x 100 pixel, cropped in quality 90 with file-id = 1 and in jpg format.

Example 02:

[ID contact]<img src="img/cmsimage.php/100x150x0x90/66.jpg" alt="my picture" />[/ID]

→ This example extradites a image with the maximum dimensions 100 x 150 pixel, no cropping in quality 90 (only jpg) with file-id = 66 and in jpg format.
→ A link will be generated to the category contact. (By using the standard tag [ID alias]Text or image[/ID]).

The quality can also escaped (value from conf.inc.php used).

Minimal:

<img src="img/cmsimage.php/100x150/66" alt="mein Bild" />[/ID]

→ Quality from conf.inc.php, no cropping, the image with the ID = 66 is used.

If the picture is not cropped, the representation always depends on the smallest indicated side length. Aspect ratio always remains.

For catching the file-ID you must only going into the file center, then please move the mouse over the little pic in front of the filename.


Have a look: Find a file or folder ID

english/technics/internal-function-call/image-call.txt · Last modified: 2010/03/26 20:37 by Knut Heermann (flip-flop)
www.planmatrix.de www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0

Strict Standards: Only variables should be passed by reference in /home/www/wiki/doku.php on line 79