Viewing 13 replies - 1 through 13 (of 13 total)
  • bumping this one. How to add EXIF in lightbox ?

    I managed to find out where the jquery script generates the data so I have done some modifications based on
    LyteBox v3.22 by Markus F. Hay https://www.dolem.com/lytebox
    and his exif reader by Jacob Seidelin

    I modified the variables to match them to the ngg lightmox variables but now the lightbox does not open anymore.

    So I uploaded my mod as a textfile maybe some developer of ngg or a java script prof can make this work.

    https://www.rose-ol.de/adrian/wp-content/uploads/sites/2/2013/08/jquery.lightbox-0.5.min_.js_.txt

    Hope you can work on thisone

    According to this thread here , people used to update the description of a picture with EXIF on upload. So that when the picture is displayed in lightbox, the EXIF will be shown as caption. However, the new version 2.0 I don’t know where to find the same piece of code to do that.

    Anyone know how to do it? Thanks.

    Another bump. Here is a link where someone manage to get EXIF show in the thumbnail page. However, I don’t know where to do the same thing in lightbox………………still.

    Thread Starter Heavenwalker

    (@heavenwalker)

    Thx to sdugoten but this hack isn’t so nice…

    It blows up the Overview.
    I’ve made a screenshot, so you can see an example:
    https://planlos-am-pc.de/foren_pics/Bild1.jpg

    Looking forward to some better solutions…

    The exif data is available if you’re up to write a new style for gallery or single pic display.
    I did write a such a gallery mode using the now deprecated ngg-legacy template system (figure…).

    $meta = new nggMeta( $image->pid );
    $exif = $meta->get_EXIF();

    // use for instance $exif[‘camera’] $exif[‘focal_length’]
    // $exif[‘aperture’] $exif[‘shutter_speed’] $exif[‘iso’]
    // put in alt and title of your image

    for instance, if you visit: https://luc.lakephoto.org/journal/2013/08/13/harvest-moon/
    click on a image and see EXIF data in the bottom right.

    Luc

    Renambot, do you have detail how to do that and wondering if you can share the file? Thanks.

    See: https://pastebin.com/MVkYhuhy

    Copy and save the code as ‘gallery-captionexif.php’ in:
    wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    As an example it just adds some exif data to the title field (alt-text / title).

    In your post, use something like:
    [nggallery id=42 template=captionexif]

    It should work with most lightbox system. My preference theses days is to disable lightboxing in NextGen and let ‘WP Jquery Lightbox’ plugin do the work (correctly).

    Luc

    Renambot, it seems they break your code in the new version. They no longer recognize custom template gallery-captionexif.php

    Do you know why is that?

    It still works for me, see:
    https://test.lakephoto.org/blog/2013/08/09/testing1-2/

    If you updated nextgen, make sure to put back the template file. Upgrades will delete your custom templates.

    Luc

    No wonder…the template is gone. I copy the template back into the system and now it works. Thanks.

    Hi everybody,

    I would like to add exifs in the image descrption using lightbox pro with nextgen gallery pro. Any idea how to do so ?

    Thanks in advance for your help.

    lordshak3r, I think the post from renambot should still work.

    ————
    See: https://pastebin.com/MVkYhuhy

    Copy and save the code as ‘gallery-captionexif.php’ in:
    wp-content/plugins/nextgen-gallery/products/photocrati_nextgen/modules/ngglegacy/view

    As an example it just adds some exif data to the title field (alt-text / title).

    In your post, use something like:
    [nggallery id=42 template=captionexif]

    It should work with most lightbox system. My preference theses days is to disable lightboxing in NextGen and let ‘WP Jquery Lightbox’ plugin do the work (correctly).

Viewing 13 replies - 1 through 13 (of 13 total)
  • The topic ‘Nextgen 2 – show META/EXIF in Lightbox’ is closed to new replies.