I am new to Piwigo and just installed it yesterday. There seems to be no way to import photos from Gallery 2, but I read that one of Piwigo's features is the "use of EXIF/IPTC metadata to fill photo properties such as title and tags". For that reason I decided to install Piwigo, but now I am lost since I cannot find the setting to insert the titles from metadata.
The metadata section in the Docs did not help, so I searched the forum, but without success. I then found and installed the Advanced MetaData plugin, but that only allows for manual conversion of metadata to tags. However, I was under the impression that Piwigo can automatically convert metadata to both tags AND titles (without any plugin).
I may very well be wrong, so I'd really appreciate a clarification if I can convert metadata to titles and tags and if so, how I can achieve that - possibly in an automated fashion.
Thanks & Merry Xmas
Last edited by geewee (2010-12-27 22:45:16)
a first direction
// | metadata |
// show_iptc: Show IPTC metadata on picture.php if asked by user
$conf['show_iptc'] = false;
// show_iptc_mapping : is used for showing IPTC metadata on picture.php
// page. For each key of the array, you need to have the same key in the
// $lang array. For example, if my first key is 'iptc_keywords' (associated
// to '2#025') then you need to have $lang['iptc_keywords'] set in
// language/$user['language']/common.lang.php. If you don't have the lang
// var set, the key will be simply displayed
// To know how to associated iptc_field with their meaning, use
$conf['show_iptc_mapping'] = array(
'iptc_keywords' => '2#025',
'iptc_caption_writer' => '2#122',
'iptc_byline_title' => '2#085',
'iptc_caption' => '2#120'
// use_iptc: Use IPTC data during database synchronization with files
$conf['use_iptc'] = false;
// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
// information ? This setting is used during metadata synchronisation. It
// associates a phpwebgallery_images column name to a IPTC key
$conf['use_iptc_mapping'] = array(
'keywords' => '2#025',
'date_creation' => '2#055',
'author' => '2#122',
'name' => '2#005',
'comment' => '2#120'
// show_exif: Show EXIF metadata on picture.php (table or line presentation
$conf['show_exif'] = true;
// show_exif_fields : in EXIF fields, you can choose to display fields in
// sub-arrays, for example ['COMPUTED']['ApertureFNumber']. for this, add
// 'COMPUTED;ApertureFNumber' in $conf['show_exif_fields']
// The key displayed in picture.php will be $lang['exif_field_Make'] for
// example and if it exists. For compound fields, only take into account the
// last part : for key 'COMPUTED;ApertureFNumber', you need
// for PHP version newer than 4.1.2 :
// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
$conf['show_exif_fields'] = array(
// use_exif: Use EXIF data during database synchronization with files
$conf['use_exif'] = false;
// use_exif_mapping: same behaviour as use_iptc_mapping
$conf['use_exif_mapping'] = array(
'date_creation' => 'DateTimeOriginal'
Thanks, I found your "winter easter egg" after installing the local file editor: config_default.inc.php.
I guess the next step will be to create local/config/config.inc.php and enter this:
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'iptc_headline' => 'title',
'iptc_caption' => 'description',
'iptc_supplemental_categories' => 'categories',
'iptc_keywords' => 'tags'
Will this now fill the database with iptc values for each photo's title and description as well as update (or add if not existing) the categories and tags? Or do I have to enter different equivalent names? The text shall be identical in all languages. Also, will this automatically work upon file upload or do I need to sync the database manually?
Last edited by geewee (2010-12-28 22:34:05)
How have you added your photos?
FTP ? pLoader ? admin form ?
you ca also use [extension by grum] Advanced Metadata
So far I have only used the admin form to upload a few test photos.
Also, I had already tried the Advanced Metadata plugin, but that lets me only convert keywords to tags. Beyond that, it shows the IPTC data under shooting conditions. However, I thought there was a way to replace the cryptic filenames with IPTC headline...
Please take a look at [Forum, topic 16604] IPTC data for Image Page Title and tell us if it answers your question.
In Piwigo 2.2, we will be able to synchronize metadata from the batch manager screen (no need to have a personal plugin as described in the above link)
I have the same need. I would like to have the existing my photo file with the embedded XMP Keyword field tags (i.e. "Events\Miscellaneous Events\Ohio State University\Football\OSU Michigan State 2005") be searchable via Piwigo. As I understand it I will need to have these in the Piwigo database system as a tag in order to search on them. Based on the comments in this thread, I installed the latest Release Candidate in the hopes that there would be a process that upon importing either automatically or manually I could have Piwigo create these tags from my photo files data. If there is a way to do this I cannot seem to find a way to do this.
This seems like it would be a very common need/feature as so many of us use image organization tools to tag our photos and would want all of this work to be leveraged by Piwigo for the purposes of searching and finding our photos.
Hopefully I am just missing something or not understanding how to do this. Thanks for any insight or help you can provide!