I've been using Tags for all my pictures and I sync them within piwigo.
All Keywords with a dot are producing an error while syncing them.
It's because . is interpreted to separate the keyword (actually it's converted to , in /admin/include/functions_metadata.php).
Changing the line
$iptc['keywords'] = preg_replace('/[.;]/', ',', $iptc['keywords']);
to
$iptc['keywords'] = preg_replace('/[;]/', ',', $iptc['keywords']);
made it possible to import the metadata (Problem was, keyword1 = Geburtstag and keyword2 = 30. Geburtstag, so there has been Geburtstag two times on one picture which let to an sql-error).
Can you fix this or is there really any camera that separates IPTC-Keywords with .?
Thanks in advance
Offline
I saw this too, but forgot to report it. I have keywords such as "St. Kitts", "Ft. Lauderdale", etc which got broken up into "St", "Kitts", "Ft", "Lauderdale". This clearly is wrong. I thought that the separator character is ";".
-- Geoff
Offline
You're right that the separator character is ";". To be sure some other characters are converted to ;. Since I don't know why I guess there are some programs that use . or + as sepeators.
When you change the code like I wrote it will work.
Offline
freanki wrote:
Since I don't know why I guess there are some programs that use . or + as sepeators.
Exactly. I'm using IMatch who does so, but maybe others also use dot as a separator for hierarchical keywords ...
Offline
rvelices wrote:
freanki wrote:
Since I don't know why I guess there are some programs that use . or + as sepeators.
Exactly. I'm using IMatch who does so, but maybe others also use dot as a separator for hierarchical keywords ...
Then this had better be settable. I'll go with Photoshop's standard of ";", but as it's been pointed out, other's use different separators. However, you can only use 1 separator otherwise you end up with problems like I have where it separated keywords into fragments.
-- Geoff
Offline