X-Git-Url: http://git.vanrenterghem.biz/git.ikiwiki.info.git/blobdiff_plain/fa90bdf4bf44d108bd8c3d53104b48aa20dc18eb..28c3e5482d7431b7554e6288bb2f9f55fbd274ed:/doc/plugins/img/discussion.mdwn
diff --git a/doc/plugins/img/discussion.mdwn b/doc/plugins/img/discussion.mdwn
index 02d46e380..048ad15b9 100644
--- a/doc/plugins/img/discussion.mdwn
+++ b/doc/plugins/img/discussion.mdwn
@@ -5,3 +5,43 @@ logo link to \[[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]]. --[[Louis|spalax]]
+
+> Eventually wrote my own plugin: [[plugins/contrib/rimg]]. --[[Louis|spalax]]
+
+>> All the markup formats supported by ikiwiki can do raw HTML (possibly
+>> filtered), so you can use `` for basic remote images; or you can
+>> use your chosen markup format's image syntax, like
+>> !\[some stars](https://img.shields.io/github/stars/joeyh/ikiwiki.svg)
+>> for Markdown. I don't think ikiwiki directives should duplicate markup
+>> formats' features unless it makes a significant difference to functionality
+>> or usability. --[[smcv]]
+
+>>> I totally agree. I never think about using HTML in my markdown documents,
+>>> and I did not know the `!\[Alt text](image url)`. Anyway, this plugin took
+>>> me less than one hour to write and publish; I will delete it soon.
+>>>
+>>> Anyway, thanks for your answer. --[[Louis|spalax]]
+
+>>>> Considering how limited Markdown is, I frequently struggle with
+>>>> this `img` limitation as well. My last fight was adding a caption
+>>>> to an image. Sure, this can be done by hand, but I stumbled upon
+>>>> Ikiwiki's lack of CSS support for `figcaption`. And it's kind of
+>>>> annoying to have to write all that `` stuff by hand when
+>>>> there's a `caption` parameter to the `img` tag... It would sure
+>>>> be useful to be able to reference external URLs, even if it means
+>>>> thumbnails are turned off... --[[anarcat]]