Mark

In my use case (periodically displaying a new image - kinda like a digital 
picture frame) I wouldn't have to load all of the images at once. For me 
the convenience of not having to create a predefined set of thumbnails 
would outweigh any extra work for the browser. I'll still give it a try 
though. Apologies for the late response.

Thanks
Steve Wharton

On Wednesday, November 12, 2014 3:13:02 PM UTC-5, Mark S. wrote:
>
> This is a more elaborate version of the macro. It assumes you have a 
> directory with your images (you can change the default) and a subdirectory 
> below that with the the thumbs called "thumbs". You click a button to show 
> either the large or full version. This may be littering your tiddler space 
> with state tiddlers. 
>
> One of the reasons to generate actual thumbs rather than just to scale 
> them is that when you scale an image the browser has to load the entire 
> mega-pixel thing into memory. 
>
> I'm sure others can tweak or replace this to make something better:
>
> \define imageit(image:"image",path:"TW-Images/")
> <$macrocall $name="imageaid" image="$path$$image$" 
> thumb="$path$thumbs/$image$" state="$:/ImageState/$image$" />
> \end
> \define imageaid(image:"image.jpg" ,thumb:"pathToThumb", 
> state:"ImageRevealState")
> <$button set="$state$" setTo="hide">Full image</$button>
> <$button set="$state$" setTo="show">Small Image</$button><p/>
> <$reveal type="match" state="$state$" text="show">
> <img src="$thumb$" />
> </$reveal>
> <$reveal type="match" state="$state$" text="hide">
> <img src="$image$" /> 
> </$reveal>
> \end
>
> Example:
>
> <<imageit "chimps_77646868_3patrol.jpg" >>
>
>
> 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 http://groups.google.com/group/tiddlywiki.
For more options, visit https://groups.google.com/d/optout.

Reply via email to