NAVIGATION
This shows you the differences between two versions of the page.
english:technics:internal-function-call:image-call [2009/08/25 17:49] Knut Heermann (flip-flop) |
english:technics:internal-function-call:image-call [2018/06/03 18:09] (current) |
||
---|---|---|---|
Line 1: | Line 1: | ||
{{indexmenu_n>100}} | {{indexmenu_n>100}} | ||
- | ===== Image call tag ===== | + | ===== Image call tag cmsimage.php ===== |
There is a uninversal methode by tag to display every picture with desired item and issue format. | 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 | Long description: img/cmsimage.php/WIDTHxHEIGHTxCROPxQUALITY/image-file-id.ext | ||
Short description: img/cmsimage.php/WxHxCxQ/image-file-id.ext | Short description: img/cmsimage.php/WxHxCxQ/image-file-id.ext | ||
- | Example: img/cmsimage.php/100x100x1x90/1.jpg | + | Example-1: img/cmsimage.php/100x100x1x90/1.jpg# |
+ | Example-2: img/cmsimage.php/100x150x0/1.jpg | ||
**Example 01:** | **Example 01:** | ||
Line 14: | Line 17: | ||
</code> | </code> | ||
-> This example extradites a image 100 x 100 pixel, cropped in quality 90 with file-id = 1 and in jpg format. | -> This example extradites a image 100 x 100 pixel, cropped in quality 90 with file-id = 1 and in jpg format. | ||
- | |||
- | -> Dieser Aufruf liefert ein Bild mit 100 x 100 Pixel, auf Größe geschnitten und mit Qualität 90 und der File-ID 1 und als JPG | ||
**Example 02:** | **Example 02:** | ||
- | <code html>[ID contact]<img src="img/cmsimage.php/100x100x0x90/66.jpg" alt="my picture" />[/ID]</code> | + | <code html>[ID contact]<img src="img/cmsimage.php/100x150x0x90/66.jpg" alt="my picture" />[/ID]</code> |
- | -> This example extradites a image 100 x 100 pixel, no cropping in quality 90 with file-id = 66 and in jpg format. \\ | + | -> 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]**).// | -> A link will be generated to the category //contact//. //(By using the standard tag **[ID alias]**Text or image**[/ID]**).// | ||
- | <note tip>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.</note> | + | The quality can also escaped //(value from conf.inc.php used)//. |
+ | |||
+ | **Minimal:** | ||
+ | <code html><img src="img/cmsimage.php/100x150/66" alt="mein Bild" />[/ID]</code> | ||
+ | |||
+ | -> Quality from conf.inc.php, no cropping, the image with the ID = 66 is used. | ||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | |||
+ | <note tip> | ||
+ | If the picture is not cropped, the representation always depends on the smallest indicated side length. Aspect ratio always remains. | ||
+ | </note> | ||
+ | |||
+ | <note tip>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: [[english/phpwcms-system/file#file_center|Find a file or folder ID]]</note> | ||