Hi,
I've used Photo Station for years on my Synology, but had to upgrade from DSM 6.2 to 7.2, knowing that would break Photo Station. Synology Photo's is not what I want, as I expected. I'm pretty certain Piwigo ticks off all boxes, for which I'm very grateful. I run it through Linuxserver's Docker image.
As a Photo Station user, I added through the years many tags (IPTC and faces). Now, I can find this data easily if I check it through Windows Explorer, as seen here.
https://imgur.com/cGpUHHo
https://imgur.com/o9MCsV5
I'm currently focusing on iptc_keywords (and leave the photo's as is for now).
What did I already do?
- I've read these thoroughly:
https://piwigo.org/doc/doku.php?id=user … amp;s=iptc
https://fr.piwigo.org/doc/doku.php?id=u … meta&s[]=iptc
https://piwigo.org/forum/viewtopic.php?id=28203
https://piwigo.org/forum/viewtopic.php?id=28615
- Changed these within config.inc.php
$conf['show_iptc'] = true;
$conf['show_iptc_mapping'] = array(
'keywords' => '2#025',
'author' => '2#122',
'byline_title' => '2#085',
'name' => '2#105',
'comment' => '2#120'
);
$conf['use_iptc'] = true;
$conf['use_iptc_mapping'] = array(
'iptc_keywords' => '2#025',
'iptc_caption_writer' => '2#122',
'iptc_byline_title' => '2#085',
'iptc_name' => '2#105',
'iptc_caption' => '2#120'
);
- Changed these in common.lang.php
$lang['IPTC Metadata'] = 'IPTC Metadata';
$lang['keywords'] = 'Keywords';
$lang['caption_writer'] = 'Description Author';
$lang['byline_title'] = 'Title of Creator';
$lang['name'] = 'Title';
$lang['caption'] = 'Description';
$lang['Keyword'] = "Keyword";
- Mapped the additional fields in my mariadb within the piwigo_images table
What I didn't do:
- Make changes to functions_metadata.php as indicated in above mentioned forum post, as those were for adding iptc_author as iptc_keywords. I never used iptc_author, hence it's outside my scope. I'm not familiar with PHP, thus I'm not certain what I should change in that file for my use case.
I do know how to find that file in my container, that's not an issue.
What I can't seem to do and would like to have some support or pointers on:
- Convert my iptc_keywords to Piwigo keywords so that I can use those to search on and make smart albums with (through the SmartAlbums plugin). Thus:
iptc_keywords = Keywords
Thanks in advance!
Environment
Piwigo 14.2.0
Installed on 9 February 2024, 1 week ago
Operating system: Linux
PHP: 8.3.2 (Show info) [2024-02-16 19:56:43]
MySQL: 11.2.2-MariaDB-1:11.2.2+maria~ubu2204 [2024-02-16 18:56:43]
Graphics Library: GD bundled (2.1.0 compatible)
Cache size 35.05 MB calculated right now Refresh
Activated plugin list
Admin Tools
Community
Grum Plugins Classes.3
History IP Excluder
Language Switch
LocalFiles Editor
meta
Read Metadata
SmartAlbums
Take A Tour of Your Piwigo
User Tags
VideoJS
Piwigo URL: https://piwigo.carnyx.synology.me/
Temp user: Kelt
Password: PiwigoHelp
Example file: https://piwigo.carnyx.synology.me/pictu … tegory/316
Offline
Dumnorix wrote:
$conf['use_iptc_mapping'] = array(
'iptc_keywords' => '2#025',
'iptc_caption_writer' => '2#122',
'iptc_byline_title' => '2#085',
'iptc_name' => '2#105',
'iptc_caption' => '2#120'
);
You have that cross with the show_iptc_mapping settings. There are no iptc_... piwigo_images columns. $conf['use_iptc_mapping'] specifies
// 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
so that should be
$conf['use_iptc_mapping'] = array( 'keywords' => '2#025', 'author' => '2#080', 'name' => '2#005', 'comment' => '2#120' );
Note that author is not 2#122, that's misdocumented in the default config file, see [Forum, post 168381 by executive in topic 28102] use_iptc_mapping for filtering and batch processing permissions.
Offline
Great erAck!
I clearly over complicated things. Your solution works. :)
As for facetags, apparently Photo Station uses XMP metadata for it. I think they're MPReg:PersonDisplayName.
I've read this topic through, fiddled a bit for my type of XMP metadata, but can't get it to work.
https://piwigo.org/forum/viewtopic.php?id=25709
I think I'll tackle it by converting that XMP metadata through EXIFtool to something else, then resync it in Piwigo to be added as keywords.
Offline