[Pmwiki-users] A special case of link markup: Image -> Image

Christian Ridderström chr
Wed May 26 06:08:45 CDT 2004


Hi

I was just asked how to make an image that links to another image (e.g. 
you have a small version of the image which when you click on takes you to 
a big version of that image).

The markup looks like this today:

        [[Attach:InstantPreview/aqua-screenshot.png \
          Attach:InstantPreview/aqua-screenshot-small.png]]

How would this case look like in the new suggested markup?

Would it be possible to supply an alternate text for both images, or is 
that not relevant?

Would it make sense to have a directive for the special case of using a 
small image as link "text"? This directive could in principle also be 
responsible for extracting a smaller version of the big image (call ing 
e.g. ImagMagick and cacheing the thumbnail). It could look like this:

	[[thumbnail:InstantPreview/aqua-screenshot.png width=50px]]

which would automatically generate 
	InstantPreviwe/aqua-screenshot-thumbnail_width=50px.png
if it doesn't exist, and generate a useful HTML.

Hmm.. I have a feeling that the above is getting to advanced...

/Christian

-- 
Christian Ridderstr?m                           http://www.md.kth.se/~chr





More information about the pmwiki-users mailing list