[pmwiki-users] Image markup (Was: viewing uploaded images)

The Editor editor at fast.st
Sat Jun 30 21:54:00 CDT 2007


On 6/30/07, Petko Yotov <5ko at free.fr> wrote:
> On Sunday 01 July 2007, The Editor wrote:
> > The markup I use on my wiki is [^picture.gif^].  If the file exists,it
> > loads the picture, if not it displays a clickable link of the file
> > name that calls the upload function. I also it for links to
> > downloadable files also. The notation works well for me.
>
> Is this not just the same as the PmWiki "Attach:picture.gif" markup is
> expected to work? And it does, surprisingly :-)

Yes, basically. Just suggesting a possible syntax. One I like quite
well. Looks similar to a link, and the ^ symbol suggests uploads to
me, as in going up.

>   " If the file exists,it loads the picture, if not it displays a
>   clickable link of the file name that calls the upload function
>   ... for links to downloadable files also. "
>
> This seems to me not exactly nearly what Christian asked for : an easy way to
> display small copies of a picture, linking to the original picture. Just
> quoting him:
>
> On Saturday 30 June 2007, christian.ridderstrom at gmail.com wrote:
> > * The result is an image
> > * The image is horizontally adjusted (less important)
> > * It should be easy to change the size of the image
> >    (typically making it smaller)
> > * Clicking on the image should show you the full immage
> > * There should be a way to add a title

True. You suggestion to use the thumbslist recipe is surely more in
line with what he originally requested. But adding the capability of
displaying clickable thumbnails should be easy enough. Basically, if a
size parameter is set or width or height or somethin, you just modify
the output to include a clickable scaled down image.

like [^image.gif size=100px^]

I also have been tinkering with some very interesting functions for
doing pagelists of stuff in other directories that could perhaps be
used to generate pagelists of graphics, and automate the thumbnail
process in a pagelist template. But as I've learned from Pm, it's best
to settle on the syntax and functionality first. Then you build the
code.

Hope some of these ideas can spark some innovation.

Cheers,
Dan



More information about the pmwiki-users mailing list