I am working on a historical photo project. A big factor in historical photos is "Who is that". I would like to display this info with each photo viewed in Pigigo.
This type of info seems to be IPTC meta data. I am using Aperture to create albums and input the meta data. I write fairly short description in the "Capture" field in Aperture that includes names of the people in the photo.
I prefer to input this within Aperture. I do not want to lose the historical data thus I am more comfortable with this on my computer. I prefer not to have to enter the data twice. Once in Aperture and once in Piwigo.
I can upload the photos with pLoader or the Aperture to Piwigo plugin but both lose or fail to display the IPTC meta data.
I am fairly computer savvy but not to confident with writing and installing scripts.
Anyone have any suggestions.
Offline
Can you read -> http://piwigo.org/doc/doku.php?id=user_ … parameters
and asks us questions ;-)
Offline
ddtddt:
Thank you for your response. I went to this link: http://piwigo.org/doc/doku.php?id=user_ … parameters
I will ask you a question. Where do I find the file $config? Would this be in the data base Piwigo created at my host? Would it be in the php files uploaded to my site?
Once again, thank U in advance for your help. I appreciate it.
Daryl
Offline
1/ Go to Administration -> plugins -> Manage
Active [extension by Piwigo Team] LocalFiles Editor
2/ Go to Administration -> plugins -> localfileditor
tab 1 'local' is you file config local
Offline
ddtddt
I may be wrong but Local Files Editor does not work with Piwigo version 2.4.
I did locate the config_default.inc.php at my host server. I changed "false" to "true".
My IPTC data now shows up.
My best bet is I now will have to find a theme that puts the selected IPTC data under the picture.
Is there an existing them that does this?
Will I have to edit the html code on an existing theme?
Thank you for your help.
daryl
Offline
djmpls wrote:
ddtddt
I may be wrong but Local Files Editor does not work with Piwigo version 2.4.
it works
djmpls wrote:
ddtddt
I did locate the config_default.inc.php at my host server. I changed "false" to "true".
It's bad idea.
The next updte it's lost :-(
djmpls wrote:
ddtddt
My best bet is I now will have to find a theme that puts the selected IPTC data under the picture.
Is there an existing them that does this?
Will I have to edit the html code on an existing theme?
on photo page they're bouton 'show metadata'
Offline
I will try to squeeze in into conversation here:
1. As for Local Files - I am not sure if it works or not, it looks blank in my install. Adding the piece of code into the form caused the site to crash. I had to re-install it, so I suggest you know what you are doing - I am not going to touch LocalFiles anymore until somebody explains me the ropes.
2. I understand that manually tweaking the config files is not such a good idea, since the file will get overwritten upon next update. Nevertheless, I used Filezilla and and fixed it manually.
I found the file 'config_default.inc.php', saved copy on the hard drive as 'config_default.inc.php_old' or similar.
In the METADATA section I replaced entire section, every line between the tri-star:
***
// 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 Piwigo find image
// information ? This setting is used during metadata synchronisation. It
// associates a piwigo_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'
);
***
with the following:
***
// show_iptc: Show IPTC metadata on picture.php if asked by user
$conf['show_iptc'] = true;
// 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_headline' => '2#105',
'iptc_caption' => '2#120',
'iptc_city' => '2#090',
'iptc_sublocation' => '2#092',
'iptc_province_state' => '2#095',
'iptc_country' => '2#101',
'iptc_country_code' => '2#100',
'iptc_keywords' => '2#025',
'iptc_caption_writer' => '2#122',
'iptc_byline' => '2#080',
'iptc_byline_title' => '2#085',
'iptc_object_attribute'=> '2#004',
'iptc_newscode' => '2#012',
'iptc_date_created' => '2#055',
'iptc_writer_editor' => '2#122',
'iptc_instructions' => '2#040',
'iptc_job_id' => '2#103',
'iptc_object_name' => '2#005',
'iptc_copyright_notice'=> '2#116',
'iptc_credit' => '2#110',
'iptc_source' => '2#115',
'iptc_contact' => '2#118'
);
// use_iptc: Use IPTC data during database synchronization with files
// metadata
$conf['use_iptc'] = true;
// use_iptc_mapping : in which IPTC fields will Piwigo find image
// information ? This setting is used during metadata synchronisation. It
// associates a piwigo_images column name to a IPTC key
$conf['use_iptc_mapping'] = array(
'iptc_headline' => '2#105',
'iptc_caption' => '2#120',
'iptc_city' => '2#090',
'iptc_sublocation' => '2#092',
'iptc_province_state' => '2#095',
'iptc_country' => '2#101',
'iptc_country_code' => '2#100',
'iptc_keywords' => '2#025',
'iptc_caption_writer' => '2#122',
'iptc_byline' => '2#080',
'iptc_byline_title' => '2#085',
'iptc_object_attribute'=> '2#004',
'iptc_newscode' => '2#012',
'iptc_date_created' => '2#055',
'iptc_writer_editor' => '2#122',
'iptc_instructions' => '2#040',
'iptc_job_id' => '2#103',
'iptc_object_name' => '2#005',
'iptc_copyright_notice'=> '2#116',
'iptc_credit' => '2#110',
'iptc_source' => '2#115',
'iptc_contact' => '2#118'
);
***
Keep in mind you don't want to install and activate Advanced Metadata plug-in, since it overrides your settings in this regard.
Please let me know if I am missing something.
Offline
1) if you give us the complete content of what you tried to write on your local config we could help you
Offline
mistic100 wrote:
1) if you give us the complete content of what you tried to write on your local config we could help you
Thank you mistik100. The IPTC editing and display is embedded into Photoshelter interface for example. I understand the difference between commercial product and an open source one in all regards, particularly end users. Including IPTC mapping would cater to professional photographers, but why not?
I have tried to implement the most useful IPTC entries, so it works for me, and upon next update I will be able to fix it again manually. But since you guys created the code with IPTC in mind, why have you decided on few entries only and set it to FALSE by default with no option to turn it on/off? Something to think about for the next release?
Don't get me wrong, the Piwigo is an outstanding piece of software, something I've been looking for for a while. Many many thanks!
Offline