[pmwiki-users] Image Thumb Link Capability

Fick, Martin fick at fgm.com
Sun Jan 29 12:06:02 CST 2006


What I have found usefull on my site is that 
for photo display you probably want at least
three main sizes:  full size, viewing size 
and thumbnail size.

I organized it with the following directives
that I created:

(:photo image1.jpeg:)

Creates an appropriately sized image (~ 600x400) 
for normal viewing embedded in a wiki page. 
Eventually I would like this size to be settable
with a cookie since every viewer probably has 
their preference for viewing photos (screen 
resolutions vary drastically!)

This image is then linked to the full size image 
(~2000x...).  The full size image is not on a page
so it cannot be linked back to anything.

This photo viewing page would be Photos.Image1 and
contains Categories that this photo is in and a 
title and descriptions etc.

Then I have:

(:thumb Photos.Image1 :)

This works like a PageVariable, it will look at 
the Photos.Image1 wiki page and find the first
(:photo:) markup and create a thumbnail size image
of it linking the thumbnail to the Photos.Image1 
page.  This might eventually be better off using 
some form of page PageVariable such as 
(:thumb {Photos.Image1$Photo}:), this would require
the (:photo:) directive to set a page variable.

  -Martin


-----Original Message-----
From: pmwiki-users-bounces at pmichaud.com on behalf of H. Fox
Sent: Sat 1/28/2006 10:33 PM
To: Patrick R. Michaud
Cc: PmWiki-Users List
Subject: Re: [pmwiki-users] Image Thumb Link Capability
 
On 1/28/06, Patrick R. Michaud <pmichaud at pobox.com> wrote:
> On Sat, Jan 28, 2006 at 05:08:52PM -0700, H. Fox wrote:
> > An image gallery capability is obviously on the back burner right now
> > (if it's even on the stove).
> >
> > In the meantime I'd like to see an author-friendly way to have a
> > thumbnail link to an image, then have the full-sized image link back
> > to the page with the thumbnail.
> >
> > The syntax would be something like
> >
> >   %thumblink%Attach:Test/SomePhoto.jpg
>
> Part of me has difficulty reconciling %thumblink% (which uses the
> wikistyle syntax) with making the image reference that follows into
> a link (or a page link).  Somehow I think it ought to be a different
> syntax, or else I need to be convinced that wikistyles should be
> smart enough to change <img ...> into <a ...>....
>
> I'd really prefer a different syntax, although I'm not sure what
> it would be.  I'd even greatly prefer (:thumb Attach:Test/SomePhoto.jpg:)
> over the use of %thumblink%.

I like that.  One reason it's almost certainly better is because
parameters aside from the image URL could be added.

I tried to pare it down to the essential functionality, so I didn't
mention alternate syntax, potentially using JavaScript or #anchor_tags
to reduce scrolling upon returning to the page, what do do about
captions, security concerns, and other things that I thought would
distract from the core idea.

The core idea is a thumbnail link to a full-sized image, which in turn
links back to the page containing the thumbnail.

Thanks,

Hagan

_______________________________________________
pmwiki-users mailing list
pmwiki-users at pmichaud.com
http://host.pmichaud.com/mailman/listinfo/pmwiki-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: /pipermail/pmwiki-users/attachments/20060129/7727d703/attachment.html 


More information about the pmwiki-users mailing list