dx/photo - Photo Display with Captions and EXIF Data
The photo shortcode was built to display images with captions and EXIF data. Wrapping this in a bbox shortcode is a nice way to make a callout box around the image.
Usage
src(required): image URL or Page resource pathalt(optional): alt textcaption(optional): textcaption_pos(optional):above|below|left|right(default:below)overlay(optional):true|false— if true, caption+button overlay bottom-right of imageinfo(optional): true|false — show info button to toggle camera detailscamera,lens,shutter,aperture,iso(optional): details for the info panelwidth,height(optional): CSS sizes (e.g.,100%,520px)class(optional): extra classes for wrapper
Examples
This example will display an image with a caption below it. It will also
put a small info icon in the bottom right corner of the image that, when
clicked, will pop up the EXIF data for the image (info=true).
| |
This example shows how to override the EXIF data that is pulled from the image. This can come in handy when EXIF data is incorrect, like maybe you were using a lens on an adapter so the camera could not identify it, or just plain missing like in the case where the image came from a film camera.
For aperture, you need to add the ƒ manually (if you want it)
| |
Examples
Getting EXIF from image
| |
Overriding EXIF data from image
| |
