Good morning!

This is the code I am using:

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

https://i.imgur.com/ouGocUq.jpg (Macro screenshot)

And in another tiddler I am using this code:

<<imageit "images\phandalin.jpg">>


And this is what happens:

well, I was about to take the screenshot as I recreated the steps and it
worked as intended lol. Thanks!
I might have missed something, it was pretty late at night yesterday. Thank
you so much.


*Roger Ferrari*



On Mon, Nov 26, 2018 at 1:18 AM 'Mark S.' via TiddlyWiki <
[email protected]> wrote:

> One of the great things about macros written with TiddlyWiki is that, if
> you used all core components, they will continue to be backward compatible
> no matter how much time has passed.
>
> I just ran a test, and the 4 year old code still works.
>
> With this particular macro, what is going to matter most is the directory
> structure of your images. It's expecting that you will put a directory
> below your TW directory, and then a subdirectory "thumbs" below that. The
> default image directory was TW-Images, but you can supply a different image
> path.
>
> So you might explain a bit about your set-up, and the image names you're
> using.
>
> Good luck
> -- Mark
>
>
>
>
> On Sunday, November 25, 2018 at 6:04:25 PM UTC-8, Roger Ferrari wrote:
>>
>> Hi, sorry to bring such old discussion, but I am trying to reproduce this
>> macro and it doesn't work for me.
>>
>> I created it with the tiddlywiki technique to implement global macros
>> (macros defined in tiddlers with the $:/tags/Macro tag)
>>
>> and the syntax is exactly the same as you show above, do you have any
>> idea what could I possibly be doing wrong? Thank you so much for any help
>> and your time.
>>
>>
>> On Monday, November 10, 2014 at 7:22:20 PM UTC-2, Mark S. wrote:
>>>
>>> You could roll your own macro that would do some of that:
>>>
>>> \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">>
>>>
>>> This produces a 1/4 size clickable "thumb" (no actual thumb is
>>> generated).
>>>
>>> To actually generate a thumb would probably take a FF plugin.
>>>
>>> The tiddlyclip plugin (http://tiddlyclip.tiddlyspot.com/) can capture
>>> screenshots of  web pages, BTW.
>>>
>>>
>>> On Monday, November 10, 2014 10:57:50 AM UTC-8, steve wrote:
>>>>
>>>> Hi
>>>>
>>>> I am using TW5 to write documentation for a application and I would
>>>> like to embed screenshots in the text
>>>> So far I am able to have a clickable link to the image (see below)
>>>>
>>>> [ext[App Screenshot|./externalFiles/image.tiff]]
>>>>
>>>> What I would really like to do is:
>>>> * have the image displayed in the tiddler without having to click on a
>>>> link (good);
>>>> * have a thumbnail of the image displayed; click on thumbnail to see
>>>> the full resolution image (better)
>>>> * generate the thumbnail "on the fly" without having to a separate
>>>> thumbnail image; click on the thumbnail to see the full resolution image
>>>> (best)
>>>>
>>>> Steve Wharton
>>>>
>>> --
> 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/54340cfb-75db-454d-8e22-b67989cfc397%40googlegroups.com
> <https://groups.google.com/d/msgid/tiddlywiki/54340cfb-75db-454d-8e22-b67989cfc397%40googlegroups.com?utm_medium=email&utm_source=footer>
> .
> For more options, visit https://groups.google.com/d/optout.
>

-- 
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/CAGJic6AUTUgcAj6i3xgqFkKqre7vEJboQO4simbasKhAPPS64g%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to