XMP-Metadaten für *.ORF Datei
Moderators: XnTriq, helmut, xnview, Dreamer
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
XMP-Metadaten für *.ORF Datei
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
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
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
Hello,
Sorry, but I forgot to say, that I used the dialog Tools --> Metadata --> Edit XMP...
herb
Sorry, but I forgot to say, that I used the dialog Tools --> Metadata --> Edit XMP...
herb
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
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:
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
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>>
In addition the file is now "read-only" and a file testimage.orf_original has been created.
Best regards
herb
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
Hello Pierre,
thanks for investigations.
I sent the image via mail to contact@...
Best regards
herb
thanks for investigations.
I sent the image via mail to contact@...
Best regards
herb
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
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
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
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XMP-Metadaten für *.ORF Datei
ok, i can reproduce when exiftool is users to write XMP. I don't know how to set exiftool to remove empty field.
Pierre.
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
Hello Pierre,
Fine that you could also reproduce the problem.
Thanks for your investigations.
- 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
Fine that you could also reproduce the problem.
Thanks for your investigations.
To give an answer, we must differ betweenI don't know how to set exiftool to remove empty field.
- 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
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XMP-Metadaten für *.ORF Datei
i use the -j JSON argument, so i can't use -= += operators
Pierre.
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
Hello Pierre,
thanks for the info.
(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
thanks for the info.
Now it is clear to me, why we have so many tags with empty valuei use the -j JSON argument
(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
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XMP-Metadaten für *.ORF Datei
-f is not for that, how do you use "-"?
elements like?How do you address elements of a structure-tag.
Do you (a) always write the whole structure or (b) do you use "flattened" tags.
yes right, the values will be applied for all selected images.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)
these options are only useful for multiple imagesIn 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.
Pierre.
-
- Posts: 255
- Joined: Sat Jul 18, 2009 3:19 pm
Re: XMP-Metadaten für *.ORF Datei
Hello Pierre,
thanks for the infos.
(1)
-j[[+]=*JSONFILE*] (-json)
Best regards
herb
thanks for the infos.
(1)
Attached a part of ExifTool help for-f is not for that, how do you use "-"?
-j[[+]=*JSONFILE*] (-json)
(2)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.
Sorry, but I do not understand what you want to ask.elements like?
Best regards
herb
-
- Author of XnView
- Posts: 42475
- Joined: Mon Oct 13, 2003 7:31 am
- Location: France
Re: XMP-Metadaten für *.ORF Datei
yes but i don't understand how to use itherb 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.
Pierre.