Image resize

204 views
Skip to first unread message

angel.e...@gmail.com

unread,
Aug 12, 2015, 4:13:56 PM8/12/15
to Roadkill Wiki

I'm new to Roadkill, I find it practical and a very nice implementation.

I have a question, is there a way to resize the images? I would like to have a resize version embedded in the text, it's somewhat inconvenient to be resizing every image, also it's convenient to have full size images that can be viewed alone once you click it.

Maybe a plug-in?

If it can be done, can it be done through HTML? If possible, can someone post an example using HTML?

I'm using Creole, I haven't decided which markup to use so I'm open to changing if needed.

Thanks.

Angel

angel.e...@gmail.com

unread,
Aug 13, 2015, 12:01:32 PM8/13/15
to Roadkill Wiki, angel.e...@gmail.com

Ok, found the answer. If anybody has the same questions here are the steps:
1. Changed from Creole to Markdown
2. In the \App-Data\Internal\htmlwhitelist.xml I looked for:
<HtmlElement Name="img">
3. I added:
<HtmlAttribute Name="width" />
4. I restarted the "Application Pool" on the IIS (Internet Information Server).
5. On the wiki page I typed:
<img src="/roadkill/attachments/myimage.png" width="120">
If you type in the width the height will automatically change proportionally

Presto!

I changed from Creole to Markdown also because Roadkill 3 is coming and Markdown is they only one supported, plus I'm just staring the Wiki so I can easily change.

Chris Small

unread,
Aug 13, 2015, 5:33:46 PM8/13/15
to roadki...@googlegroups.com
You could install a jQuery plugin and reference it on the view, I don't know any off the top of my head but I'm sure there are a few auto-resizer ones.

It's best to stick to markdown, as the next version of Roadkill will be Markdown only (you won't get tables however).


--
You received this message because you are subscribed to the Google Groups "Roadkill Wiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to roadkillwiki...@googlegroups.com.
To post to this group, send an email to roadki...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/roadkillwiki/cbbaea96-09ec-4abd-9d1a-eed2787a83cd%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages