简体   繁体   中英

How to insert an external image link to dokuwiki?

I want to insert an image to dokuwiki without uploading the image to the server where the dokuwiki is hosted, like <img src="http://cdn-domain/xxx.png"> does.

How can I realize it? I have tried {{http://cdn-domain/xxx.png}} . However, it will use fetch.php to use my server as a proxy which will burden my server. Since my images are stored in an external cloud storage service, I want to direct link to the image like <img> tag does.

As I replied to your cross-posts on DokuWiki's forum and GitHub issues:

It is currently not possible to use external media URLs and have them used directly. But as I wrote in the forum:

The "burden" to your server is extremely minimal as the proxy does not download the image itself, it only redirects to the original image (unless you changed the default fetchsize config option ).

This is one of samples. Important thing is that at the end must be an image extension.

{{http://kalsey.com/tools/buttonmaker/button.php?barPosition=50&leftText=Dynamic&leftTextColor=ffffff&rightText=IMG&rightTextPosition=54&.png?}}

More details here: https://www.dokuwiki.org/images#dynamic_images

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM