Try putting quotes around the attribute values:

\define imageit(image:"image.jpg")
<a href="$image$" target="new"><img src="$image$" width="25%" height="25%" 
/></a>
\end

e.g.

<<imageit "images/google_drive.png">>


Good luck,
Mark
On Saturday, December 16, 2017 at 10:41:09 AM UTC-8, Jon wrote:
>
> Hi, 
>
> I came across the macro below from Mark S (here 
> <https://groups.google.com/forum/#!msg/tiddlywiki/6pU_xG0VJec/G9S0xG3KhxMJ;context-place=searchin/tiddlywiki/tw5$20external$20images$20button%7Csort:date>)
>  which 
> creates a clickable thumbnail image which then opens full size.
>
> However, I've noticed that it doesn't work if the file name of the image 
> has a gap eg. "image name.jpg"
>
> Anyone know how to fix it for this situation?
>
> Thanks
> Jon
>
>
> \define imageit(image:"image.jpg")
> <a href=$image$ target="new"><img src=$image$ width="25%" height="25%" 
> /></a>
> \end
>
> e.g. 
>
> <<imageit "TW-Images\chimps_77646868_3patrol.jpg">>
>
>
>

-- 
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 [email protected].
To post to this group, send email to [email protected].
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/474e2be1-f42a-4493-bb72-4d72cbc64a70%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to