Hi
I'm new to this software and need some help.
I wanted to add ITPC data so I added this to config.inc.php
$conf['show_iptc'] = true;
$conf['use_iptc'] = true;
$conf['show_iptc_mapping'] = array(
'iptc_creator' => '2#080',
'iptc_title' => '2#005',
'iptc_headline' => '2#105',
'iptc_description' => '2#120',
'iptc_keywords' => '2#025',
);
The images I tested with do not have any data added as "description" yet the Piwigo page adds "ASCII" as the image description.
Environment
Piwigo 12.3.0 Check for upgrade
Operating system: Linux
PHP: 7.4.30 (Show info) [2022-08-01 11:21:22]
MySQL: 5.5.5-10.5.16-MariaDB-cll-lve [2022-08-01 11:21:22]
Graphics Library: ImageMagick 7.1.0-20
Cache size 5.50 MB right now Refresh
Activated plugins
Admin Tools
Language Switch
LocalFiles Editor
Offline
Hi :-)
with [extension by ddtddt] Read Metadata you see IPTC ?
Offline
I installed the plugin but can't see that anything changed.
I would like to use the copyright field in ITPC as the Photographer info for visitors.
Offline
Hi :-)
Edit photo
clic on show metadata
do you see your metadata ?
Offline
At this adress i see the ”standard” data
/admin.php?page=photo-19-properties
I see the full metadata here
/admin.php?page=plugin-read_metadata
Offline
Hi :-)
paste part IPTC for one photo
Offline
Make sure you have a correct use_iptc_mapping in your local config, it should be
$conf['use_iptc_mapping'] = array( 'keywords' => '2#025', 'author' => '2#080', 'name' => '2#005', 'comment' => '2#120' );
Note that the default include/config_default.inc.php has
'author' => '2#122',
which is wrong, 2#122 is the author of the description, not the photo's author.
See also [Forum, post 168381 by executive in topic 28102] use_iptc_mapping for filtering and batch processing permissions.
Also note that
'date_creation' => '2#055'
should not be in there as the IPTC date is only date without time and would override EXIF DateTime.
Offline
I just created https://github.com/Piwigo/Piwigo/pull/1702 for this.
Offline
Thanks.
My setup now looks like this. I removed the cache in my browser but still can't see that anything changed.
$conf['use_exif_mapping'] = array( 'date_creation' => 'DateTimeOriginal', 'comment' => 'UserComment', ); $conf['show_iptc'] = true; $conf['use_iptc'] = true; $conf['show_iptc_mapping'] = array( 'iptc_title' => '2#005', 'iptc_byline' => '2#080', 'iptc_byline_title' => '2#085', 'iptc_byline_contact' => '2#118', 'iptc_keywords' => '2#025', 'iptc_caption' => '2#120', 'iptc_caption_writer' => '2#122', 'iptc_country_code' => '2#100', 'iptc_country' => '2#101', 'iptc_city' => '2#090', 'iptc_copyright' => '2#116' ); $conf['use_iptc_mapping'] = array( 'keywords' => '2#025', 'author' => '2#080', 'name' => '2#005', 'comment' => '2#120', 'country' => '2#101', 'copyright' => '2#116' );
Offline
Hi :-)
have you "force"Synchronize metadata" in your Piwigo ?
Offline
Yes I used the synchronise in settings and also for individual images.
Offline
The 'country' and 'copyright' keys in use_iptc_mapping don't make sense, unless you altered your piwigo_images table to contain those columns. I don't know what exactly happens if the metadata synchronization encounters undefined columns.
Offline
Thanks. I changed that and synced again and now I can see the added field Photograph shown for visitors. Great!
I'm still looking for an answer about the ITPC "Description". I added a description to one JPG and it's show below the image for visitors.
But if I upload an image with no description the caption below say ASCII. It can be seen in an image earlier in this thread.
If possible I would like to show the file "title" below the image. It's also seen in the path above the image.
How can I do that?
Offline