简体   繁体   English

如何插入外部图片链接到dokuwiki?

[英]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. 我想将图像插入到dokuwiki,而不要将图像上传到托管dokuwiki的服务器,就像<img src="http://cdn-domain/xxx.png">那样。

How can I realize it? 我怎么知道呢? I have tried {{http://cdn-domain/xxx.png}} . 我已经尝试过{{http://cdn-domain/xxx.png}} However, it will use fetch.php to use my server as a proxy which will burden my server. 但是,它将使用fetch.php将我的服务器用作代理,这会加重我的服务器的负担。 Since my images are stored in an external cloud storage service, I want to direct link to the image like <img> tag does. 由于我的图像存储在外部云存储服务中,因此我想像<img>标签一样直接链接到图像。

As I replied to your cross-posts on DokuWiki's forum and GitHub issues: 当我回复您在DokuWiki的论坛和GitHub问题上的交叉帖子时:

It is currently not possible to use external media URLs and have them used directly. 当前无法使用外部媒体URL并直接使用它们。 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 ). 服务器的“负担” 极小,因为代理服务器不会下载映像本身,它只会重定向到原始映像(除非您更改了默认的fetchsize config选项 )。

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 此处有更多详细信息: https : //www.dokuwiki.org/images#dynamic_images

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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