aboutsummaryrefslogtreecommitdiff
path: root/doc/plugins/img/discussion.mdwn
blob: 492769592d6f696bfec87cee36e40f638ec20bac (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
It would be useful (at least for me) if one could specify
(using a [[ikiwiki/WikiLink]]) where the image links to.  For example,
on <http://www.bddebian.com/~wiki/sidebar/> I'd like to have the
logo link to \[[hurd/logo]] / <http://www.bddebian.com/~wiki/hurd/logo/>
instead of linking to the PNG image file.  --[[tschwinge]]

> Done, use link=somepage --[[Joey]]

It would be handy if the `class` and `id` tags were passed through to the surrounding `table` in the case of `caption` being present.  Would this break anything?  --[[neale]]

> Seems unlikely to break *too* much. I can imagine css that styles the img
> unexpectedly applying the table. --[[Joey]]

[[!template id=gitbranch branch=kjs/img-sharpen author="[[Kalle Söderman|kjs]]"]]

I have created a patch that allows the image to be sharpened when resampled.
There is also an additional option to interlace the image using plane for
progressive display. --[[kjs]]

---

Is it possible to give an external image URL, must the image be local? One use case would be displaying *badges*, like [[the number of stars|https://img.shields.io/github/stars/joeyh/ikiwiki.svg]] of a [[github project|http://github.com/joeyh/ikiwiki]], but ``\[[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]]`` does not work: [[!img https://img.shields.io/github/stars/joeyh/ikiwiki.svg]].