May be a Bug - Hard to Explain
Moderators: helmut, XnTriq, xnview
May be a Bug - Hard to Explain
This has followed me through several versions.
I can't decide whether it is a fault with the IPTC editor or something I am doing wrong.
When I load a selection of image files with differing Keyword Tags in the IPTC Editor and choose "Load Template", do my editing and Write to All Files, all works as planned and all of my Keyword Tags are just as they were = just what I wanted.
However, when I load only a single image file with Keyword Tags, Load Template, add some IPTC, and Write to File = it strips away all of my Keyword Tags.
It does this every time with single image files.
I can do two or more and it works fine.
Is the problem me or the IPTC Editor ?
Thanks for reading.
I can't decide whether it is a fault with the IPTC editor or something I am doing wrong.
When I load a selection of image files with differing Keyword Tags in the IPTC Editor and choose "Load Template", do my editing and Write to All Files, all works as planned and all of my Keyword Tags are just as they were = just what I wanted.
However, when I load only a single image file with Keyword Tags, Load Template, add some IPTC, and Write to File = it strips away all of my Keyword Tags.
It does this every time with single image files.
I can do two or more and it works fine.
Is the problem me or the IPTC Editor ?
Thanks for reading.
Re: May be a Bug - Hard to Explain
"Keep and Add New Value(Keywords and Supplemental Categories)" is CHECKED
"Keep Original Value if New Value is Empty" is CHECKED
"Replace Only if Original Value is Empty" Not Checked
"Keep Original Value if New Value is Empty" is CHECKED
"Replace Only if Original Value is Empty" Not Checked
Re: May be a Bug - Hard to Explain
Previous versions
When a single photo is selected, it seems that using "Load template" makes "Keep Original Value if New Value is Empty" ineffective.
Not only keywords are deleted, but also the other fields that are empty in the template.
XnViewMP 1.5.0
When you choose your template to load, you must check "Merge data " option in this dialog
When a single photo is selected, it seems that using "Load template" makes "Keep Original Value if New Value is Empty" ineffective.
Not only keywords are deleted, but also the other fields that are empty in the template.
XnViewMP 1.5.0
When you choose your template to load, you must check "Merge data " option in this dialog
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: May be a Bug - Hard to Explain
Thank You.michel038 wrote: Mon Jul 17, 2023 6:06 pm Previous versions
When a single photo is selected, it seems that using "Load template" makes "Keep Original Value if New Value is Empty" ineffective.
Not only keywords are deleted, but also the other fields that are empty in the template.
XnViewMP 1.5.0
When you choose your template to load, you must check "Merge data " option in this dialog
merge.png
If one does make "Merge Data" effective when working with single files, they had better remember to un-check the box when working with a selection of more than one file, else ALL the keywords of all the files will be applied to every selected file and you then have a mess to clean up = I learned that the hard way more than once.
Once Merge Data is checked, it remains checked, so one must remember and be sure to uncheck it.
As for this:
"When a single photo is selected, it seems that using "Load template" makes "Keep Original Value if New Value is Empty" ineffective.
Not only keywords are deleted, but also the other fields that are empty in the template."
:is this something that is fixable in future versions ?
Thanks.
Re: May be a Bug - Hard to Explain
It's fixed, it was in previous version.BuckSkin wrote: Mon Jul 17, 2023 8:10 pm "When a single photo is selected, it seems that using "Load template" makes "Keep Original Value if New Value is Empty" ineffective.
Not only keywords are deleted, but also the other fields that are empty in the template."
:is this something that is fixable in future versions ?
If you use 'Merge data', is it working?
Pierre.
Re: May be a Bug - Hard to Explain
Yes; if I use Merge Data the Keywords stay.
Re: May be a Bug - Hard to Explain
How can we reproduce ?If one does make "Merge Data" effective when working with single files, they had better remember to un-check the box when working with a selection of more than one file, else ALL the keywords of all the files will be applied to every selected file and you then have a mess to clean up = I learned that the hard way more than once.
V1.5.0 windows
(first, select 2 images, open Edit iptc, and make sure that Options > "Don'l load field values" is ticked . Close IPTC dialog)
- I select 2 jpg's with different keywords
- I open edit iptc and apply an iptc template (caption= test ) with "merge data" ticked
- Write all
My 2 pictures have kept their keywords unchanged ...
And don't forget that you can create a toolbar button with templates

Last edited by michel038 on Wed Jul 19, 2023 6:23 pm, edited 1 time in total.
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: May be a Bug - Hard to Explain
In Options, the first two options are checked and the third is not.
If Merge Data is checked in the Load Template dialogue, it happens every time for me.
Thanks; this is with Merge Data remaining checked ?michel038 wrote: Tue Jul 18, 2023 4:02 pm V1.5.0 windows
(first, select 2 images, open Edit iptc, and make sure that Options > "Don'l load field values" is ticked . Close IPTC dialog)
- I select 2 jpg's with different keywords
- I open edit iptc and apply an iptc template (caption= test )
- Write all
My 2 pictures have kept their keywords unchanged ...
I was unaware that I could do this; are there instructions somewhere ? Is this Toolbar button for each individual template ? Does this apply the template without opening the IPTC Editor ?michel038 wrote: Tue Jul 18, 2023 4:02 pm And don't forget that you can create a toolbar button with templates![]()
Thanks.
Re: May be a Bug - Hard to Explain
1) I have the same options. With merge data ticked, my keywords stay unchanged.
But I do not enter any keyword in my templates.
I never enter keywords with "edit Iptc" dialog.
You can edit your template with a notepad to check it. ( file with .iptc extension in xnviewmp folder)
This one is for City=Marseille, region=13
2)
I edited my previous post to make it clearer
3) Settings > Interface > Toolbar
Select "New IPTC Template" and move it to the left with < button
Browse and select an "iptc" file shown with the drop down menu in the dialog box .
By default, "merge data" is applied.
Each new button added can call a template ; when hovering the button , a tooltip is displayed.
You can also change icons.
I created 5 buttons for towns where I often take photos, to fill in location metadata in one click ...
The "Edit iptc" window does not appear, it saves time
But I do not enter any keyword in my templates.
I never enter keywords with "edit Iptc" dialog.
You can edit your template with a notepad to check it. ( file with .iptc extension in xnviewmp folder)
This one is for City=Marseille, region=13
Code: Select all
<?xml version="1.0" encoding="UTF-8"?><!DOCTYPE iptc_template><iptc_template version="1.0">
<tag_5/>
<tag_7/>
<tag_15/>
<tag_20>
<list/>
</tag_20>
<tag_22/>
<tag_25>
<list/>
</tag_25>
<tag_26/>
<tag_27>
<list/>
</tag_27>
<tag_40/>
<tag_65/>
<tag_70/>
<tag_80/>
<tag_85/>
<tag_90>
<value>Marseille</value>
</tag_90>
<tag_92/>
<tag_95>
<value>13</value>
</tag_95>
<tag_101/>
<tag_103/>
<tag_105/>
<tag_110/>
<tag_115/>
<tag_116/>
<tag_118>
<list/>
</tag_118>
<tag_120/>
<tag_122/>
</iptc_template>
Yesthis is with Merge Data remaining checked ?
I edited my previous post to make it clearer
3) Settings > Interface > Toolbar
Select "New IPTC Template" and move it to the left with < button
Browse and select an "iptc" file shown with the drop down menu in the dialog box .
By default, "merge data" is applied.
Each new button added can call a template ; when hovering the button , a tooltip is displayed.
You can also change icons.
I created 5 buttons for towns where I often take photos, to fill in location metadata in one click ...
The "Edit iptc" window does not appear, it saves time
Catalogage avec XnviewMP :
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
https://orchisere.fr/logiciels/html/xnviewmpintro.htm
Tutoriel exiftool : https://orchisere.fr/logiciels/html/exiftool.htm
Re: May be a Bug - Hard to Explain
Thanks; I will definitely be checking this out.michel038 wrote: Wed Jul 19, 2023 6:22 pm
I created 5 buttons for towns where I often take photos, to fill in location metadata in one click ...
The "Edit iptc" window does not appear, it saves time
I did for a while try adding Keyword Tags via IPTC templates and then I figured out that IPTC applied Keywords are only ever single level with no heirarchy.
The new ability to create and apply Keywords via the XMP templates and XMP Editor seems to work fine thus far, but I have not yet really put it to the test.