images
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
images [2014-02-22 20:03] – old revision restored (2013/11/22 13:26) ach | images [2023-03-05 13:48] (current) – Aleksandr | ||
---|---|---|---|
Line 1: | Line 1: | ||
====== Image and Media Handling ====== | ====== Image and Media Handling ====== | ||
- | You can upload and embed other files into [[DokuWiki]] pages with the [[wiki: | + | You can upload and embed other files into [[DokuWiki]] pages with the [[wiki: |
- | ====Uploading==== | + | ===== Uploading ===== |
- | {{: | + | |
- | {{http://wiki.splitbrain.org/ | + | {{: |
+ | |||
+ | Uploading new files is done with the [[media manager|media manager popup]] called by button {{https://www.dokuwiki.org/ | ||
Just use the upload form at the top right to upload a file. Optionally you can give a new name for the file. Be sure to keep the file extension correct! If you use new [[namespaces]] in the name these will be created automatically. | Just use the upload form at the top right to upload a file. Optionally you can give a new name for the file. Be sure to keep the file extension correct! If you use new [[namespaces]] in the name these will be created automatically. | ||
+ | |||
+ | The [[fullscreen mediamanager|fullscreen media manager]] lets you also upload images and [[video|videos]]. Besides it can show media revisions and edit the image metadata as well. | ||
Please note: If the administrator enabled [[ACL]] support, upload may be restricted to certain users. Users without the proper permission will not see the upload form. | Please note: If the administrator enabled [[ACL]] support, upload may be restricted to certain users. Users without the proper permission will not see the upload form. | ||
- | ====Embedding==== | + | ===== Embedding ===== |
Use '' | Use '' | ||
{{wiki: | {{wiki: | ||
{{wiki: | {{wiki: | ||
+ | |||
An image {{wiki: | An image {{wiki: | ||
Line 26: | Line 30: | ||
{{wiki: | {{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 ('' |
=====Alignment===== | =====Alignment===== | ||
Line 55: | Line 59: | ||
{{wiki: | {{wiki: | ||
+ | |||
+ | Or to scale an image proportionally in height, give the wanted height in Pixels, preceeded by a width of 0: | ||
+ | |||
+ | {{wiki: | ||
+ | |||
+ | {{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 68: | Line 78: | ||
[[DokuWiki]] 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. | [[DokuWiki]] 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. | ||
- | By default, clicking on an image brings up a " | + | By default, clicking on an image brings up a " |
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 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: | ||
Line 76: | Line 86: | ||
{{wiki: | {{wiki: | ||
- | You may click on the image shown on the details page to get yet another page the 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. |
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. This is called a " | 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. This is called a " | ||
Line 119: | Line 129: | ||
} | } | ||
</ | </ | ||
+ | |||
===== Dynamic Images ===== | ===== Dynamic Images ===== | ||
Line 134: | Line 145: | ||
You also need to add a question mark at the very end or DokuWiki will think the CGI parameters are caching options. | You also need to add a question mark at the very end or DokuWiki will think the CGI parameters are caching options. | ||
+ | |||
+ | For use of '' | ||
+ | |||
+ | Example of usage of the ''& | ||
{{http:// | {{http:// | ||
Line 147: | Line 162: | ||
===== Removing Media ===== | ===== Removing Media ===== | ||
- | It is sometimes necessary to remove a media, which was being uploaded before. To do this the [[ACL]] feature needs to be enabled and the user who wants to delete files needs to have the '' | + | It is sometimes necessary to remove a media file, which was being uploaded before. To do this the [[ACL]] feature needs to be enabled and the user who wants to delete files needs to have the '' |
See also: [[faq: | See also: [[faq: | ||
Line 156: | Line 171: | ||
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: [[http:// |
- | Example: | + | Example: [[http:// |
Line 180: | Line 195: | ||
{{http:// | {{http:// | ||
+ |
images.1393095813.txt.gz · Last modified: 2014-02-22 20:03 by ach · Currently locked by: 175.41.177.237