XMP-Metadaten für *.ORF Datei

*** Please report new bugs here! ***

Moderators: XnTriq, helmut, xnview, Dreamer

herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

I use XnViewMP 1.4.0 on a Windows 10 system.

I used an image that does not contain any XMP-metadata and that has no XMP-sidecar.
After writing XMP-Metadata for a RAW-image (in my case a *.orf image) into the image itself or into the *.xmp sidecar-file
for ALL possible values a tag is created.

I think it is better to write only the not-empty values.
For me it is an error, because in case of a *.jpg file only the not-empty values are written.

Best regards
herb
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello,

Sorry, but I forgot to say, that I used the dialog Tools --> Metadata --> Edit XMP...

herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

what do you means by 'a tag is created'?
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

With right-click on my testfile.orf I selected "Edit XMP...".
The dialog "Edit XMP" showed all fields empty, because the image has no XMP-metadata.
Settings are
- write XMP-metadata into image
- write XMP and update IPTC-IIM

I entered value "Titel" (only this one) and pressed "Write".
This created the following XMP block inside the image:

Code: Select all

<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 12.52'>
<rdf:RDF xmlns:rdf='http://www.w3.org/1999/02/22-rdf-syntax-ns#'>

 <rdf:Description rdf:about=''
  xmlns:Iptc4xmpExt='http://iptc.org/std/Iptc4xmpExt/2008-02-29/'>
  <Iptc4xmpExt:Creator>
   <rdf:Bag>
    <rdf:li rdf:parseType='Resource'/>
   </rdf:Bag>
  </Iptc4xmpExt:Creator>
  <Iptc4xmpExt:Event>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'/>
   </rdf:Alt>
  </Iptc4xmpExt:Event>
  <Iptc4xmpExt:LocationShown>
   <rdf:Bag>
    <rdf:li rdf:parseType='Resource'>
     <Iptc4xmpExt:City/>
     <Iptc4xmpExt:CountryName/>
     <Iptc4xmpExt:ProvinceState/>
    </rdf:li>
   </rdf:Bag>
  </Iptc4xmpExt:LocationShown>
  <Iptc4xmpExt:OrganisationInImageCode>
   <rdf:Bag>
    <rdf:li/>
   </rdf:Bag>
  </Iptc4xmpExt:OrganisationInImageCode>
  <Iptc4xmpExt:OrganisationInImageName>
   <rdf:Bag>
    <rdf:li/>
   </rdf:Bag>
  </Iptc4xmpExt:OrganisationInImageName>
  <Iptc4xmpExt:PersonInImage>
   <rdf:Bag>
    <rdf:li/>
   </rdf:Bag>
  </Iptc4xmpExt:PersonInImage>
 </rdf:Description>

 <rdf:Description rdf:about=''
  xmlns:dc='http://purl.org/dc/elements/1.1/'>
  <dc:creator>
   <rdf:Seq>
    <rdf:li/>
   </rdf:Seq>
  </dc:creator>
  <dc:description>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'/>
   </rdf:Alt>
  </dc:description>
  <dc:rights>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'/>
   </rdf:Alt>
  </dc:rights>
  <dc:title>
   <rdf:Alt>
    <rdf:li xml:lang='x-default'>Titel</rdf:li>
   </rdf:Alt>
  </dc:title>
 </rdf:Description>

 <rdf:Description rdf:about=''
  xmlns:photoshop='http://ns.adobe.com/photoshop/1.0/'>
  <photoshop:AuthorsPosition/>
  <photoshop:CaptionWriter/>
  <photoshop:City/>
  <photoshop:Country/>
  <photoshop:Instructions/>
  <photoshop:State/>
  <photoshop:TransmissionReference/>
 </rdf:Description>

 <rdf:Description rdf:about=''
  xmlns:xmp='http://ns.adobe.com/xap/1.0/'>
  <xmp:ModifyDate>2022-12-15T18:00:44</xmp:ModifyDate>
  <xmp:Rating>0</xmp:Rating>
 </rdf:Description>

 <rdf:Description rdf:about=''
  xmlns:xmpRights='http://ns.adobe.com/xap/1.0/rights/'>
  <xmpRights:Marked>False</xmpRights:Marked>
  <xmpRights:WebStatement/>
 </rdf:Description>
</rdf:RDF>
</x:xmpmeta>>
You can see that not only tag xmp-dc:title has been created; but this the only with non-empty value.

In addition the file is now "read-only" and a file testimage.orf_original has been created.

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

could you send me the sample file used, i can't reproduce
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

thanks for investigations.
I sent the image via mail to contact@...

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

I can't reproduce, could you send me your .ini?
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

I repeated the test.
I removed my xnview.ini file and started XnViewMP.
Then I performed the test as described in previous posts of this thread.
The result is identical compared to tests with "old *.ini" file.

What else can be responsible for the described behaviour?

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

ok, i can reproduce when exiftool is users to write XMP. I don't know how to set exiftool to remove empty field.
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

Fine that you could also reproduce the problem.
Thanks for your investigations.
I don't know how to set exiftool to remove empty field.
To give an answer, we must differ between
- the type of an (ExifTool) tag and
- whether the tag is inside or outside of a structure.

Please share the command you send to ExifTool and I will try to comment.
I hope to have enough experience with ExifTool commands .

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

i use the -j JSON argument, so i can't use -= += operators
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

thanks for the info.
i use the -j JSON argument
Now it is clear to me, why we have so many tags with empty value

(1)
- in case of deleting a tag via json-format you have to use the -f option and value "-" (as described in ExifTool help).
- "-=" or "+=" is only usabel for listtype-tags (as far as I know)
- to add values to a listtype-tag option -j+=<file> is to be used
but this "add-mode" is now valid for all list-type tags

(2)
How do you address elements of a structure-tag.
Do you (a) always write the whole structure or (b) do you use "flattened" tags.

(3)
In case of multiple images selected, you do know only all values of 1 file.
How do you guarantee that values unchanged in GUI keep unchanged in image, when you always write whole structure (a)

(4)
In GUI we have tab "options" with checkboxes
- keep current value in case of no change and
- change only empty values
Why are these option unused in case of only 1 image is selected.

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

herb wrote: Thu Dec 29, 2022 11:54 am - in case of deleting a tag via json-format you have to use the -f option and value "-" (as described in ExifTool help).
-f is not for that, how do you use "-"?
How do you address elements of a structure-tag.
Do you (a) always write the whole structure or (b) do you use "flattened" tags.
elements like?
In case of multiple images selected, you do know only all values of 1 file.
How do you guarantee that values unchanged in GUI keep unchanged in image, when you always write whole structure (a)
yes right, the values will be applied for all selected images.
In GUI we have tab "options" with checkboxes
- keep current value in case of no change and
- change only empty values
Why are these option unused in case of only 1 image is selected.
these options are only useful for multiple images
Pierre.
herb
Posts: 255
Joined: Sat Jul 18, 2009 3:19 pm

Re: XMP-Metadaten für *.ORF Datei

Post by herb »

Hello Pierre,

thanks for the infos.
(1)
-f is not for that, how do you use "-"?
Attached a part of ExifTool help for
-j[[+]=*JSONFILE*] (-json)
Unlike CSV import, empty values are not ignored, and will cause an
empty value to be written if supported by the specific metadata
type. Tags are deleted by using the -f option and setting the tag
value to "-" (or to the MissingTagValue setting if this API option
was used). Importing with -j+=*JSONFILE* causes new values to be
added to existing lists.
(2)
elements like?
Sorry, but I do not understand what you want to ask.

Best regards
herb
User avatar
xnview
Author of XnView
Posts: 42475
Joined: Mon Oct 13, 2003 7:31 am
Location: France

Re: XMP-Metadaten für *.ORF Datei

Post by xnview »

herb wrote: Wed Jan 04, 2023 10:56 am -j[[+]=*JSONFILE*] (-json)
Unlike CSV import, empty values are not ignored, and will cause an
empty value to be written if supported by the specific metadata
type. Tags are deleted by using the -f option and setting the tag
value to "-" (or to the MissingTagValue setting if this API option
was used). Importing with -j+=*JSONFILE* causes new values to be
added to existing lists.
yes but i don't understand how to use it
Pierre.