Project

General

Profile

Bug #783

Xmp.fwl.LocalCaption wrong key

Added by Oliver Loch over 10 years ago. Updated over 6 years ago.

Status:
Closed
Priority:
Normal
Category:
xmp
Target version:
Start date:
02 Aug 2011
Due date:
% Done:

0%

Estimated time:

Description

Hi,

I'm not 100% sure this is a bug:

I have a lot of pictures that use Xmp.fwl.LocalCaption as the main description.

I can see the key when I do a 'exiv2 -PX $picture'

Xmp.fwl.LocalCaption                         XmpText   239 blablahblah lot of text here 

but trying to change it:


# exiv2 -ix -M "set Xmp.fwl.LocalCaption XmpText blahblah" A_S_9686.JPG 
-M option 1: Invalid key `Xmp.fwl.LocalCaption'
exiv2: Error parsing -M option arguments
Usage: exiv2 [ options ] [ action ] file ...

Manipulate the Exif metadata of images.

# exiv2 -ix -M "set Xmp.fwl.LocalCaption blahblah" A_S_9686.JPG 
-M option 1: Invalid key `Xmp.fwl.LocalCaption'
exiv2: Error parsing -M option arguments
Usage: exiv2 [ options ] [ action ] file ...

Manipulate the Exif metadata of images.

is not working. Am I missing something or did I hit a bug?

Btw. There are other keys in the Xmp.fwl "class".

If you want to have the picture for further investigation just write me an email :)

Here the exiv2 version and stuff:

# exiv2 -V
exiv2 0.20
Copyright (C) 2004-2010 Andreas Huggel.

This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public License
as published by the Free Software Foundation; either version 2
of the License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU General Public License for more details.

You should have received a copy of the GNU General Public
License along with this program; if not, write to the Free
Software Foundation, Inc., 51 Franklin Street, Fifth Floor,
Boston, MA 02110-1301 USA

Thanks!

KR,

Grimeton

History

#1

Updated by Andreas Huggel over 10 years ago

  • Status changed from New to Feedback

Exiv2 doesn't know the fwl prefix. You need to register it. Something like this works:

exiv2 -M"reg fwl some-namespace" -M"set Xmp.fwl.LocalCaption blahblah" image.jpg

Where some-namespace should be replaced with the proper namespace URI for fwl.

If you know that URI, good. If not, you can trick exiv2 into showing it by running the above command (with "some-namespace") on a copy of an existing image that already has fwl properties and you'll get a warning of the form

Warning: Updating namespace URI for fwl from http://the.real.uri/ to some-namespace/

(maybe you'll need a newer version of exiv2 for that than 0.20, that warning was introduced relatively recently IIRC)

Andreas

#2

Updated by Robin Mills over 6 years ago

  • Status changed from Feedback to Resolved
  • Assignee set to Andreas Huggel
  • Target version set to 0.25

I'm going to set the status of this to "Resolved". Google can help me find the definition of the fwl namespace. In fact, this bug report is the first item that Google lists! I've confirmed that Andreas suggestion is totally correct:

$ exiv2 -M"reg fwl http://exiv2.org/issue783" -M"set Xmp.fwl.LocalCaption XmpText blahblah" jpg.jpg 
Warning: Updating namespace URI for fwl from http://clanmils.com/ to http://exiv2.org/issue783/
607 rmills@rmillsmbp:~/gnu/exiv2/trunk $ exiv2 -pX jpg.jpg | xmllint -pretty 1 -
<?xml version="1.0"?>
<?xpacket begin="" id="W5M0MpCehiHzreSzNTczkc9d"?>
<x:xmpmeta xmlns:x="adobe:ns:meta/" x:xmptk="XMP Core 4.4.0-Exiv2">
  <rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#">
    <rdf:Description xmlns:xmp="http://ns.adobe.com/xap/1.0/" 
       xmlns:fwl="http://exiv2.org/issue783/"      fwl:LocalCaption="blahblah" 
       xmlns:dc="http://purl.org/dc/elements/1.1/" rdf:about="" xmp:Rating="0" 
       xmp:ModifyDate="2015-02-13T20:46:51-06:00">
      <dc:title>
        <rdf:Alt>
          <rdf:li xml:lang="x-default">the rest drink soda</rdf:li>
          <rdf:li xml:lang="en-GB">the Brits are in the bar</rdf:li>
          <rdf:li xml:lang="de-DE">the Germans like beer</rdf:li>
        </rdf:Alt>
      </dc:title>
    </rdf:Description>
  </rdf:RDF>
</x:xmpmeta>
<?xpacket end="w"?>
$ bin/exiv2json -x jpg.jpg 
{
    "Xmp": {
        "xmp": {
            "Rating": "0",
            "ModifyDate": "2015-02-13T20:46:51-06:00" 
        },
        "fwl": {
            "LocalCaption": "blahblah" 
        },
        "dc": {
            "title": {
                "lang": {
                    "x-default": "the rest drink soda",
                    "en-GB": "the Brits are in the bar",
                    "de-DE": "the Germans like beer" 
                }
            }
        }
    }
}

#3

Updated by Andreas Huggel over 6 years ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF