-
Notifications
You must be signed in to change notification settings - Fork 41
EXIF Metadata in PhotoSwipe
You can show the the picture's EXIF metadata in PhotoSwipe. This feature is disabled by default, see Performance considerations
It uses PHPs read_exif_data function through Piwigo's get_exif_data(), which requires a 1to1 mapping from tag names to EXIF fields. The default mapping should work for most vendor/lens combinations, with the exception of older Canon bodies/lenses. Implementing a proper exif extraction using exiftool or similar is beyond the scope of a theme, but at least you have an option to override the default mapping in local/config/config.inc.php.
$config['bootstrap_darkroom_ps_exif_mapping'] = array(
'date_creation' => 'DateTimeOriginal',
'make' => 'Make',
'model' => 'Model',
'lens' => 'UndefinedTag:0xA434',
'shutter_speed' => 'ExposureTime',
'iso' => 'ISOSpeedRatings',
'apperture' => 'FNumber',
'focal_length' => 'FocalLength',
);
Do not change the keys on the left side, also adding new ones will have no effect.
Additionally, you can set a search & replace filter on each tag. This is handy if your camera vendor decided to set the "make" tag to "OLYMPUS IMAGING CORP." and you prefer it to be just "Olympus".
$conf['bootstrap_darkroom_ps_exif_replacements'] = array(
'make' => array('OLYMPUS IMAGING CORP.','Olympus'),
'lens' => array('iPhone 6 back camera','iSight Camera'),
);
Be aware that each images data is extracted from the file directly when the page is loaded (category, thumbnails, picture page). If you have albums with tens of thousands of images in one single album, this could cause your server to crash, burn your house, kill your cat, etc. You have been warned.
- Frequently Asked Questions
- Plugin Support Matrix
- Video support
- EXIF Metadata in PhotoSwipe
- Make it work like Smartpocket
- Add custom CSS and Javascript
- Override the Navbar style and background
- Compile your own Bootstrap
- Add primary links to the top navigation
- Add custom share buttons
- Hide image metadata by default
- Replace default mobile webapp logo icons
- Remove the "Mail to Webadmin" link in the footer
- Pre generate custom size derivatives