[Bug 311973] New: Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

classic Classic list List threaded Threaded
5 messages Options
Reply | Threaded
Open this post in threaded view
|

[Bug 311973] New: Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

Joseph Reagle
https://bugs.kde.org/show_bug.cgi?id=311973

            Bug ID: 311973
          Severity: normal
           Version: unspecified
          Priority: NOR
          Assignee: [hidden email]
           Summary: Extra commas in IPTC keywords should be trimmed,
                    otherwise messes up naming
    Classification: Unclassified
                OS: Linux
          Reporter: [hidden email]
          Hardware: Ubuntu Packages
            Status: UNCONFIRMED
         Component: Metadata
           Product: digikam

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)

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 311973] Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

Gilles Caulier-4
https://bugs.kde.org/show_bug.cgi?id=311973

Gilles Caulier <[hidden email]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|UNCONFIRMED                 |RESOLVED
                 CC|                            |[hidden email]
            Version|unspecified                 |2.9.0
         Resolution|---                         |INVALID

--- Comment #1 from Gilles Caulier <[hidden email]> ---
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

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 311973] Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

Joseph Reagle
In reply to this post by Joseph Reagle
https://bugs.kde.org/show_bug.cgi?id=311973

--- Comment #2 from Joseph Reagle <[hidden email]> ---
On 12/20/2012 03:54 AM, Gilles Caulier wrote:
> --- Comment #1 from Gilles Caulier <[hidden email]> ---
> 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?

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 311973] Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

Gilles Caulier-4
In reply to this post by Joseph Reagle
https://bugs.kde.org/show_bug.cgi?id=311973

--- Comment #3 from Gilles Caulier <[hidden email]> ---
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

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

[Bug 311973] Extra commas in IPTC keywords should be trimmed, otherwise messes up naming

Joseph Reagle
In reply to this post by Joseph Reagle
https://bugs.kde.org/show_bug.cgi?id=311973

--- Comment #4 from Joseph Reagle <[hidden email]> ---
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.

--
You are receiving this mail because:
You are the assignee for the bug.
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel