1 It would be useful (at least for me) if one could specify
2 (using a [[ikiwiki/WikiLink]]) where the image links to. For example,
3 on <http://www.bddebian.com/~wiki/sidebar/> I'd like to have the
4 logo link to \[[hurd/logo]] / <http://www.bddebian.com/~wiki/hurd/logo/>
5 instead of linking to the PNG image file. --[[tschwinge]]
7 > Done, use link=somepage --[[Joey]]
9 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]]
11 > Seems unlikely to break *too* much. I can imagine css that styles the img
12 > unexpectedly applying the table. --[[Joey]]
14 [[!template id=gitbranch branch=kjs/img-sharpen author="[[Kalle Söderman|kjs]]"]]
16 I have created a patch that allows the image to be sharpened when resampled.
17 There is also an additional option to interlace the image using plane for
18 progressive display. --[[kjs]]
22 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]]. --[[Louis|spalax]]
24 > Eventually wrote my own plugin: [[plugins/contrib/rimg]]. --[[Louis|spalax]]
26 >> All the markup formats supported by ikiwiki can do raw HTML (possibly
27 >> filtered), so you can use `<img>` for basic remote images; or you can
28 >> use your chosen markup format's image syntax, like
29 >> !\[some stars](https://img.shields.io/github/stars/joeyh/ikiwiki.svg)
30 >> for Markdown. I don't think ikiwiki directives should duplicate markup
31 >> formats' features unless it makes a significant difference to functionality
32 >> or usability. --[[smcv]]
34 >>> I totally agree. I never think about using HTML in my markdown documents,
35 >>> and I did not know the `!\[Alt text](image url)`. Anyway, this plugin took
36 >>> me less than one hour to write and publish; I will delete it soon.
38 >>> Anyway, thanks for your answer. --[[Louis|spalax]]
40 >>>> Considering how limited Markdown is, I frequently struggle with
41 >>>> this `img` limitation as well. My last fight was adding a caption
42 >>>> to an image. Sure, this can be done by hand, but I stumbled upon
43 >>>> Ikiwiki's lack of CSS support for `figcaption`. And it's kind of
44 >>>> annoying to have to write all that `<figure>` stuff by hand when
45 >>>> there's a `caption` parameter to the `img` tag... It would sure
46 >>>> be useful to be able to reference external URLs, even if it means
47 >>>> thumbnails are turned off... --[[anarcat]]