NextGEN Gallery Review - Displaying Images - Singlepic
Table of contents for NextGEN Gallery Review
- NextGEN Gallery Review - Introduction
- NextGEN Gallery Review - Installation
- NextGEN Gallery Review - Configuration
- NextGEN Gallery Review - Image Management
- NextGEN Gallery Review - Displaying Images
- NextGEN Gallery Review - Displaying Images - Singlepic
- NextGEN Gallery Review - Displaying Images - Gallery
- NextGEN Gallery Review - Displaying Images - ImageBrowser
- NextGEN Gallery Review - Displaying Images - Album
To display a single image from any gallery, specify the singlepic shortcode on a post or page.
[singlepic=id,width,height,mode,float]
id= the ID of the image (e.g. 1).
width,height= width and height in pixels to scale the image to. These are maximums; the aspect ratio will be maintained.
mode(web20orwatermark) = options for displaying the image;web20displays the image with a mirror-like effect with a reflection;watermarkto add a watermark to the image. This parameter is optional.
float(right,center, orleft) = type of float CSS style to add to the image. This parameter is optional.
The singlepic shortcode displays a single picture from any gallery. Clicking on the image displays the image as you have specified on the Effects options page. With the default Thickbox effect, the background goes gray and a larger version of the image (if available) is displayed.
Examples
[singlepic=#,400,300]
Mode = web20
The web20 mode displays the image with a mirror-like effect with a reflection.
[singlepic=#,400,300,web20]
Mode = watermark
The watermark mode adds a text or image overlay on the image based on what you have specified on the Watermark options page.
[singlepic=#,400,300,watermark]
Float
The float parameter indicates how to place the image with respect to the rest of the content around it. It causes a float style to be added to the image HTML. Options include left, center, and right.
[singlepic=#,300,300,,right]
This text is displayed to the left of the image.
Wishlist / Caveats
- It would be nice if the width and height parameters were optional and the values were taken from the image in the gallery. This wouldn’t be as useful for large images, but for smaller inline images this would be very useful.
- It would be nice if the image could be displayed with no link so that a custom link could be specified instead. For example, I would like to be able to display an image and have it link to another web page or web site rather than bring up the “full size” image.
- It appears that the full-size image is downloaded to the visitor’s machine which is less than ideal. I’d prefer to have the option to download the thumbnail and scale that instead.
Resources
All images © 2008 Bethany Potter. All rights reserved.




Lucky Dog » Announcement !! · August 5th, 2008 at 12:54 am #
[...] NextGEN Gallery Review - Displaying Images - Singlepic [...]
It would be nice if the float command had some padding to separate the image from the text, a bit like the HTML hspace and vspace commands
@Mike - I agree completely! If enough of us make the suggestion to Alex maybe he’ll make that change. Alternately, someone could also make the change and submit it to Alex.
Another glitch seems to be that if I use [singlepic=1,100,,] to put a thumbnail of an image in a blog page then the whole area to the right of that thumbnail is clickable, and not just the image itself.
I’m not too sure if this is a problem with my usage of the singlepic command or the underlying code itself
Displaying Images · August 17th, 2008 at 7:03 am #
[...] article gives various instructions for displaying images. It is set at Singlepic, but from the top menu you [...]
My wishlist would include being able to ad a caption to the singlepic, just like can be added when displaying a gallery. If one of the singlepic parameters was to display the alt/title text for a photo that would be great.
I also like your idea of being able to have it not link anywhere or being able to specify a link out for a singlepic. It would also be nice if you could have it link to a gallery page that it is a part of.
I think the most important feature to add next is for thumbnailing the images. All the pictures I upload are 1280×1024 and my blog posts are typically an “image story”, so this is actually killing peoples machines sometimes.
I did solve this by thumbnailing all images but then I swapped to nextgen so the problem is back.
What would be really nice would be if on first view, nextgen generates the thumbs according to the size parameters given to the singlepic command, and then subsqeuently it can just use this thumb.