[pmwiki-users] Image Thumb Link Capability
haganfox at users.sourceforge.net
Sun Jan 29 17:26:17 CST 2006
On 1/29/06, Fick, Martin <fick at fgm.com> wrote:
> 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.
"Creating an appropriately sized image" opens a whole new can of worms. See
for some code to simply get the GD version, and GD isn't available on
all installations. Consider also that many sites will prefer to use
e.g. Image Magick for resampling images.
This proposal is for something far simpler, where the thumbnail is not
really a thumbnail but the full-size image displayed thumbnail-size by
the browser (like the current %thumb% wikistyle does). No new images
or pages are created.
The way I see it so far, it's two parts:
1) Special markup like (:thumb Attach:Test/SomePhoto.jpg:) generates a
self-referring thumbnail link with
2) When a page is requested with
?action=viewimage&image=<url_of_the_image> the image is displayed
within a template page (maybe Site.ViewImage). A default template
might render a page that looks like
Thinking about it... maybe just the image name, rather than a URL,
would be better.
p.s.: I think a PmWiki image gallery with resampling will be an
important and useful addition. It's just not what I'm proposing here.
More information about the pmwiki-users