Thanks for sharing the macro. I use a slightly different one \define img(img, img_url) <a href="http://localhost:8084/$img_url$" target="_blank"><img src= "http://localhost:8084/$img$"/></a> \end
because I want to link to the image: the image I display is a scaled-down version of the linked one. Even on the portable edition of TW5, I could never manage to get the right combination of ext and img to do the right thing. michele On Monday, May 11, 2015 at 1:12:06 AM UTC+2, Mark S. wrote: > > > Ok, using Michele's idea for http-server running on port 8084, I can > define a macro like this: > > *\define images(image:"Bugs Bunny")* > *<$macrocall $name="imagepath" image="$image$" path={{imagePath1}} />* > *\end* > *\define imagepath(image:"a",path:"b")* > *[img[$path$$image$]]* > *\end* > > Then with tiddler imagePath1 like this: > > http://192.168.1.103:8084/TW-Images/ > > > > *I can insert an image like this* > *<<images myimage.jpg>>* > > It serves up on my desktop and local device OK. Presumably I could change > the path whenever I needed. > > But this would mean changing all my image references to macros. And the > _canonical_uri thing doesn't work. What I would prefer is if there was a > way to "hook" a macro to the existing image links and insert the path > before the image is rendered. > > Mark > > -- 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+unsubscr...@googlegroups.com. To post to this group, send email to tiddlywiki@googlegroups.com. Visit this group at http://groups.google.com/group/tiddlywiki. To view this discussion on the web visit https://groups.google.com/d/msgid/tiddlywiki/71e10a08-9472-4443-bab1-1e4df1397b15%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.