![]() Instead of merely replacing all images in a folder with the same image (leading to a larger size than necessary), icon-resize can automatically crop (to a square image) and resize an icon to fit all your theming needs. If you just want to provide a link to the image without displaying it inline, use the linkonly option:ĭokuwiki-128.png This is just a link to the image.This program builds on the program made by /u/trclocke in this thread. You can also combine the 'nolink' and resize parameters by inserting an ampersand '&' between: You accomplish this with the nolink option, as follows: It is also possible to embed an image in the page without having the image link to any other page. Try clicking on this scaled-down image to see its direct page. This is called a “direct” link, and it's indicated by appending the direct option to the image: You may instead embed an image on a page such that clicking on it brings you directly to the full image in its own page. Often you'll embed the image on a page at a small size and show the image on a detail page at a medium size, so that only this final direct link provides the image at its full size. You may click on the image shown on the details page to get yet another page that contains only the image, shown at its actual size. ![]() Try clicking on this scaled-down image to see its detail page. The following syntax embeds an image in the page at full size, and clicking on this image produces a detail page providing metadata for the image: The standard detail.php file shows a larger version of the image along with a listing of EXIF and IPTC metadata contained within the image (such as caption, author, date taken, etc.), along with other descriptive information. The detail page is rendered by the detail.php template file. It also allows you to include images that do not link to any other page.īy default, clicking on an image brings up a “detail” page. In DokuWiki or later, giving both width and height will crop the image before scaling to avoid distorting the image.ĭokuWiki allows you to put images in a page and have them link to a page providing details about the image or to a page that contains the full image. This image is scaled to a width of 20 pixels and a height of 50 pixels. When you give the width and height, the image will be scaled to exactly that height, ignoring the aspect ratio: This image is scaled down to a height of 20 pixels. Or to scale an image proportionally in height, give the wanted height in Pixels, preceeded by a width of 0: This image is scaled down to a width of 20 pixels. To scale an image proportionally, give the wanted width in pixels: To do that, you have to allow DokuWiki to download external files by increasing the size restriction in the fetchsize option. When using libGD, resizing can fail when not enough memory is available or the image format is not supported by the installed libGD version.įor resizing external images, they need to be cached at your server. Better results can be achieved with the imagemagick command line tool. By default it uses PHP's libGD support if installed. ![]() DokuWiki can rescale images with two methods. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |