Announcement

#1 2010-12-25 15:25:42

geewee
Member
2010-12-25
19

How to convert metadata to titles

Hi everybody,

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
geewee

Last edited by geewee (2010-12-27 22:45:16)

Offline

 

#2 2010-12-28 17:19:53

geewee
Member
2010-12-25
19

Re: How to convert metadata to titles

Is my question too basic, have I posted in the wrong forum, or does nobody know how to do it?

I'm puzzled...

Offline

 

#3 2010-12-28 18:42:20

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7046

Re: How to convert metadata to titles

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
// tools/metadata.php
$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
// metadata
$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
// avalaible)
$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
// $lang['exif_field_ApertureFNumber']
//
// for PHP version newer than 4.1.2 :
// $conf['show_exif_fields'] = array('CameraMake','CameraModel','DateTime');
//
$conf['show_exif_fields'] = array(
  'Make',
  'Model',
  'DateTimeOriginal',
  'COMPUTED;ApertureFNumber'
  );

// use_exif: Use EXIF data during database synchronization with files
// metadata
$conf['use_exif'] = false;

// use_exif_mapping: same behaviour as use_iptc_mapping
$conf['use_exif_mapping'] = array(
  'date_creation' => 'DateTimeOriginal'
  );


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#4 2010-12-28 22:33:42

geewee
Member
2010-12-25
19

Re: How to convert metadata to titles

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)

Offline

 

#5 2010-12-29 08:36:53

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7046

Re: How to convert metadata to titles

How have you added your photos?

FTP ? pLoader ? admin form ?

you ca also use [extension by grum] Advanced Metadata


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#6 2010-12-29 16:18:09

geewee
Member
2010-12-25
19

Re: How to convert metadata to titles

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...

Offline

 

#7 2010-12-31 11:43:27

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13545

Re: How to convert metadata to titles

Hi geewee,

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)

Offline

 

#8 2011-01-01 13:08:18

geewee
Member
2010-12-25
19

Re: How to convert metadata to titles

Hi plg,

thank you for the link to the temporary solution. However, I have decided to wait for 2.2, so I can use the batch manager for synchronizing.

Offline

 

#9 2011-03-10 00:51:59

Todd
Guest

Re: How to convert metadata to titles

Hello All,

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!

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2022 · Contact