NextGen Gallery Image Object

The following is a print out of the $image object used in galleries:

Note: [*caption] * added because ‘caption’ seems to be a reserved word

nggImage Object (
[errmsg] =>
[error] =>
[imageURL] => http://yoursite.com/wp-content/gallery/logos/wd-logo.jpg
[thumbURL] => http://yoursite.com/wp-content/gallery/logos/thumbs/thumbs_wd-logo.jpg
[imagePath] => /home/username/public_html/wp-content/gallery/logos/wd-logo.jpg
[thumbPath] => /home/username/public_html/wp-content/gallery/logos/thumbs/thumbs_wd-logo.jpg
[href] =>
[thumbPrefix] => thumbs_
[thumbFolder] => /thumbs/
[galleryid] => 7
[pid] => 101
[filename] => wd-logo.jpg
[description] =>
[alttext] => letter head 1
[imagedate] => 2013-02-13 01:09:14
[exclude] => 0
[thumbcode] =>
[name] => logos
[path] => wp-content/gallery/logos
[title] =>Logos
[pageid] => 0
[previewpic] => 101
[permalink] =>
[image_slug] => wd-logo
[post_id] => 0
[sortorder] => 0
[meta_data] => Array (
[0] =>
[aperture] =>
[credit] =>
[camera] =>
[*caption] =>
[created_timestamp] =>
[copyright] =>
[focal_length] =>
[iso] =>
[shutter_speed] =>
[flash] =>
[title] => letter head 1
[keywords] =>
[width] => 800
[height] => 244
[saved] => 1
[thumbnail] => Array(
[width] => 150
[height] => 150
)
)
[gid] => 7
[slug] => logos
[galdesc] =>
[author] => 1
[imageHTML] =>
[hidden] =>
[style] =>
[pidlink] => /directory/?pid=101
[url] => http://yoursite.com/wp-content/gallery/logos/wd-logo.jpg
[thumbnailURL] => http://yoursite.com/wp-content/gallery/logos/thumbs/thumbs_wd-logo.jpg
[size] => width="150" height="150"
=>
[ngg_custom_fields] => Array ( ) )

1 Comment

  1. Geoffrey Hunter on April 20, 2013 at 10:30 pm

    Great info! One thing to note, I don’t think the “size” object exists, I believe “width” and “height” are direct child objects of “image” itself (this if after just testing this theory). And I think those width and heights are the width and heights defined in the shortcode (e.g. [singlepic id=772 w=800 h=800 float=center], not the actual dimensions of the displayed image.

Leave a Comment