This shows you the differences between two versions of the page.
| zref:wiki:images [2025/04/22 13:44] – ↷ Page moved from wiki:images to zref:wiki:images Alan Shea | zref:wiki:images [2025/04/22 13:44] (current) – ↷ Links adapted because of a move operation Alan Shea | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Image and Media Handling ====== | ====== Image and Media Handling ====== | ||
| - | You can upload and embed other files into [[doku> | + | You can upload and embed other files into [[doku> |
| ===== Uploading ===== | ===== Uploading ===== | ||
| Line 22: | Line 22: | ||
| {{wiki: | {{wiki: | ||
| - | An image {{wiki: | + | An image {{zref:wiki: |
| You may use '' | You may use '' | ||
| Line 28: | Line 28: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| How images are embedded can be influenced by various parameters. Parameters are added in URL style by appending a question mark (?) and separating multiple parameters by an ampersand (&). | How images are embedded can be influenced by various parameters. Parameters are added in URL style by appending a question mark (?) and separating multiple parameters by an ampersand (&). | ||
| Line 36: | Line 36: | ||
| By using left or right whitespaces you can choose left, right or center alignment. | By using left or right whitespaces you can choose left, right or center alignment. | ||
| - | {{ wiki: | + | {{ zref:wiki: |
| - | {{wiki: | + | {{zref:wiki: |
| - | {{ wiki: | + | {{ zref:wiki: |
| {{ wiki: | {{ wiki: | ||
| Line 58: | Line 58: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| Or to scale an image proportionally in height, give the wanted height in Pixels, preceeded by a width of 0: | Or to scale an image proportionally in height, give the wanted height in Pixels, preceeded by a width of 0: | ||
| Line 64: | Line 64: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| When you give the width and height, the image will be scaled to exactly that height, ignoring the aspect ratio: | When you give the width and height, the image will be scaled to exactly that height, ignoring the aspect ratio: | ||
| Line 70: | Line 70: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| In DokuWiki 2009-02-14 or later, giving both width and height will crop the image before scaling to avoid distorting the image. | In DokuWiki 2009-02-14 or later, giving both width and height will crop the image before scaling to avoid distorting the image. | ||
| Line 84: | Line 84: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| 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. 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. 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. | ||
| Line 92: | Line 92: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| It is also possible to embed an image in the page without having the image link to any other page. You accomplish this with the '' | It is also possible to embed an image in the page without having the image link to any other page. You accomplish this with the '' | ||
| Line 98: | Line 98: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| You can also combine the ' | You can also combine the ' | ||
| Line 104: | Line 104: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| If you just want to provide a link to the image without displaying it inline, use the '' | If you just want to provide a link to the image without displaying it inline, use the '' | ||
| Line 110: | Line 110: | ||
| {{wiki: | {{wiki: | ||
| - | {{wiki: | + | {{zref:wiki: |
| Line 170: | Line 170: | ||
| To link images to other resources, simply pipe that link into the image, as you would with any other text. | To link images to other resources, simply pipe that link into the image, as you would with any other text. | ||
| - | Example: | + | Example: |
| Example: | Example: | ||
| Line 177: | Line 177: | ||
| If the image link is to local media (like a .pdf), you can use the following syntax: | If the image link is to local media (like a .pdf), you can use the following syntax: | ||
| - | Example: | + | Example: |
| | | ||