| Summary: | Extra commas in IPTC keywords should be trimmed, otherwise messes up naming | ||
|---|---|---|---|
| Product: | [Applications] digikam | Reporter: | Joseph Reagle <joseph.2011> |
| Component: | Metadata-Iptc | Assignee: | Digikam Developers <digikam-bugs-null> |
| Status: | RESOLVED NOT A BUG | ||
| Severity: | normal | CC: | caulier.gilles |
| Priority: | NOR | ||
| Version First Reported In: | 2.9.0 | ||
| Target Milestone: | --- | ||
| Platform: | Ubuntu | ||
| OS: | Linux | ||
| Latest Commit: | Version Fixed/Implemented In: | 7.5.0 | |
| Sentry Crash Report: | |||
The comma in digiKam IPTC metadata sidebar is a presentation separator for keywords tag. In metadata as well, nothing is separated by a comma. Each keyword is hosted in a dedicated field... This is the standard IPTC encoding schema. Sound like your problem is in another place... Please check... Gilles Caulier On 12/20/2012 03:54 AM, Gilles Caulier wrote:
> --- Comment #1 from Gilles Caulier <caulier.gilles@gmail.com> ---
> The comma in digiKam IPTC metadata sidebar is a presentation separator for
> keywords tag. In metadata as well, nothing is separated by a comma. Each
> keyword is hosted in a dedicated field... This is the standard IPTC encoding
> schema. Sound like your problem is in another place... Please check...
Hi Gilles, then the problems are that (1) digikam can create blank
keywords fields and (2) doesn't remove them -- regardless of their
source. (I was thrown off by the comma in the metadata field.) Do you
now of a way to delete them?
1/ => no. GUI, do not accept blank entry... 2/ if yes, it's probably an Exiv2 issue... Exiv2 shared lib is used i background to manage IPTC entries. Do you tries Exiftool to remove empty IPTC fields ? Gilles Caulier On 12/20/2012 08:17 AM, Gilles Caulier wrote:
> Do you tries Exiftool to remove empty IPTC fields ?
If I know what field is, such as a single space, this is possible:
exiftool -keywords+=' ' test.jpg
However, when I encountered this problem I wasn't sure what the
whitespace actually was.
|
Hi, I've noticed in using Digikam I ended up with e.g. Keywords=", test" (in the IPTC metadata tab, but nothing in the tag edit itself). This appears as an empty keyword in other applications and (more importantly) interferes with my naming system (wherein keywords are separated by a hyphen) because I end up with files with '--' in them (null value between the hyphens). Digikam should trim extra commas / empty keywords. Reproducible: Always Steps to Reproduce: 1. Somehow end up with extra comma -- perhaps this can be done on purpose. 2. Look at IPTC metadata 3. Try a rename mask like this and see extra hyphens: [date:dd-hmm]-[meta:Iptc.Application2.Keywords]{replace:", ","-",i}{lower} Actual Results: extra commas -- and hyphens in rename Expected Results: trimmed commas (no empty keywords)