Image Captions
  • I've noticed a lot of discussions on this forum about whether or not there can be captions on larger images.

    And Victor, it seems as though you haven't found a way to do this as of yet.

    Currently I am researching a way to have a PHP script print the metadata of a JPG from a larger image to display a description of that image directly inside the frame. (I think the frame DIV might be called one of these names: #image_container, #img, .imagen; just so you know what I'm talking about)

    I am looking at sites with information like this To help me figure out how to do this.

    Have you ever looked into this as being a possibility to display a caption?
  • i haven't added captions only because i haven't found a simple way (for the users) to add them without having to create a new text file for each picture or something as complex as that.

    i have looked into it, but right now i don't have the information at hand. if i find it i'll let you know, and good luck.
  • So I figured out how to extract the image data and description from a photo using php.


    <?php

    $exif = exif_read_data('tests/test2.jpg', 0, true);

    echo $exif['IFD0']['ImageDescription'];

    ?>


    In order to input an image description go into Photoshop and go under file info > description > description and type whatever caption you want for that photo.

    I just don't know where to put this code, so that when a larger image loads, beneath the photo the php script will spit out the photos description dynamically.

    Does anybody have any ideas?