Tiddlywiki core images not supported by image widget ???

66 views
Skip to first unread message

Alex

unread,
Feb 6, 2019, 11:16:59 AM2/6/19
to TiddlyWiki
Hi,

Try the following code:

"{{$:/core/images/chevron-down}} vs. [img[$:/core/images/chevron-down]]"

For me, on TW 5.1.19, the second way does not render anything. I did not dig deeper, but could it be that the name of the core image is interpreted as external URL by the widget instead of tiddler name?

I guess it is possible to mirror the behaviour of the image widget with its height and width attributes using transclusion and CSS as in https://tiddlywiki.com/#ImageGallery%20Example, stuffing it all in some macro. However, shouldn't it all work out of the box?

Mark S.

unread,
Feb 6, 2019, 11:39:56 AM2/6/19
to TiddlyWiki
I think because the tiddler is actually SVG instructions for embedding, it doesn't get rendered. So although it does get rendered when transcluded, it's not really an image per se. If you had tried instead an actual image, it would have worked:

[img[Motovun Jack.jpg]]


-- Mark

Jeremy Ruston

unread,
Feb 6, 2019, 11:49:55 AM2/6/19
to tiddl...@googlegroups.com
Hi Alex

There is some documentation about the difference between SVG images and tiddlers containing SVG elements here:


The advantage of using “raw” SVG elements is that they can be styled via CSS, unlike SVG images within an img element.

Best wishes

Jeremy

-- 
You received this message because you are subscribed to the Google Groups "TiddlyWiki" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tiddlywiki+...@googlegroups.com.
To post to this group, send email to tiddl...@googlegroups.com.
Visit this group at https://groups.google.com/group/tiddlywiki.
To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/3673fb0a-1686-418d-b83d-ac0ea8aaf95b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply all
Reply to author
Forward
0 new messages