Not logged in. · Lost password · Register
Forum: General Help and Support Features and Functionality RSS
Single image with custom size and alignment and lightbox like popup [was Gallery plugin]
Avatar
kaktux #1
User title: Rumirrer
Member since Feb 2008 · 25 posts
Group memberships: Members
Show profile · Link to this post
i am having difficulties with the exact same thing:

I want to add a single image to one page: i want it to be half the size in the page - but full in the popup/lightbox. But somehow i don't get it to work.

{{gallery> :namespace:subnamespace:subsubnamespace?imagename.png&800X600&lightbox }}

shows only a small thumbnail. And also the centering does not work (it is on the left).

Does anyone know and tell me what is wrong in my syntax?? Any hint would be great.
Avatar
schplurtz (Moderator) #2
Member since Nov 2009 · 314 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
hi,

The gallery plugin is designed to present a gallery... The popup viewer plugin https://www.dokuwiki.org/plugin:popupviewer can do what you want.

max size, no alignment
{{popup>:image.jpg|}}
<WRAP clear/>
resized, noalignment
{{popup>:image.jpg?180x112|}}
<WRAP clear/>
resize and right aligned. need double image syntax
{{popup>:image.jpg|{{  :image.jpg?180x112|}}}}
<WRAP clear/>
resized and centered. need double image syntax
{{popup>:image.jpg|{{  :image.jpg?180x112  |}}}}
<WRAP clear/>
resized and left aligned. need double image syntax
{{popup>:image.jpg|{{:image.jpg?180x112  |}}}}

Note that I had to use <WRAP clear/> from the plugin https://www.dokuwiki.org/plugin:wrap to force a carriage return in the page.
http://schplurtz.free.fr/wiki/
Avatar
kaktux #3
User title: Rumirrer
Member since Feb 2008 · 25 posts
Group memberships: Members
Show profile · Link to this post
thanks for your answer. The reason why i asked about the gallery plugin is because in its description it says:
Instead of using a whole namespace of images, you can also specify a single image – this makes more sense when combined with the lightbox mode (see below).

{{gallery>:namespace:someimage.jpg}}

Which looks to me like what i meant - but maybe i misunderstand that.

To be exact: like i descritbes it is working (adding and showing single image and using lightbox) - but it is showing only one small thumbnail , that is not centered.
So i probably did something wrong - because besides size and orientation it is working - hence the question
Avatar
schplurtz (Moderator) #4
Member since Nov 2009 · 314 posts · Location: France, Finistère
Group memberships: Global Moderators, Members
Show profile · Link to this post
Which looks to me like what i meant - but maybe i misunderstand that.
No, you are right. My bad.

You may have to specify both the small size (nnnxnnn) and the lightbox size (nnnXnnn)
to center, add space at both side of imagename

{{gallery> image.jpg?300x250&lightbox&1000x600 }}
works on my installation. centered, 300x250 in page and 1000x600 (or just big I don't really know) in lightbox popup.
http://schplurtz.free.fr/wiki/
Close Smaller – Larger + Reply to this post:
Verification code: VeriCode Please enter the word from the image into the text field below. (Type the letters only, lower case is okay.)
Smileys: :-) ;-) :-D :-p :blush: :cool: :rolleyes: :huh: :-/ <_< :-( :'( :#: :scared: 8-( :nuts: :-O
Special characters:
Go to forum
Imprint
This board is powered by the Unclassified NewsBoard software, 20150713-dev, © 2003-2015 by Yves Goergen
Current time: 2018-12-16, 07:05:32 (UTC +01:00)