Page 1 of 2
IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Sun Jun 03, 2018 7:04 pm
by jcancha
If I use a template to add keywords to a single photo using the IPTC-IIM/XMP dialogue all existing keywords are overwritten. Is there an option to just add keywords from a template to the already existing value of that picture? As far as I can see, that option only works for changing multiple photos, not for single files. Is that a bug or did I miss something? Thank you.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Jun 04, 2018 2:53 pm
by xnview
what do you have in IPTC dialog>Options
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Jun 04, 2018 3:44 pm
by jcancha
Here's a screen of the options settings. For templates on multiple files those settings work perfectly fine, but they do not seem to work on individual photos...I could not change them anyway since the switches are inactive in single mode.

- XnViewMP-Options.png (6.76 KiB) Viewed 4297 times
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Thu Jun 07, 2018 10:05 am
by xnview
i need to add an option to choose behavior when using template (clear all or merge)
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Thu Jun 07, 2018 10:15 am
by jcancha
Ok, thank you.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Tue Sep 17, 2019 10:21 am
by xnview
This problem is supposed to be fixed in
XnView MP 0.94. Please check and confirm the bug fix here.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Tue Sep 17, 2019 11:00 am
by jcancha
xnview wrote: Tue Sep 17, 2019 10:21 am
This problem is supposed to be fixed in
XnView MP 0.94. Please check and confirm the bug fix here.
Unfortunately, the problem also occurs with the version 0.94. When I apply a template to a single file, the old data is overwritten. Here is a screen of the settings:

- 2019-09-17 XNView MP 094.jpg (46.59 KiB) Viewed 3927 times
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Sep 23, 2019 12:23 pm
by xnview
could you send me the template file?
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Wed Oct 30, 2019 9:49 pm
by mudo_j
If I may try to jump in here without harm:
XnView MP 0.94 beta 3, 64-bit, Windows 10
Edit IPTC-IIM/XMP mode: XMP, update or create IPTC-IIM
Files are zipped to keep the metadata untouched:
0_empty.jpg - no metadata
1_ccl_template-source.jpg - no metadata, then Country, City and Location written. Then the template was exported/saved:
montmartre.iptc.
2_c-k-sc.jpg - no metadata, then a caption, 3 keywords and 2 supplemental categories written.
3_c-k-sc_copy_plus_template.jpg - copy of the previous file, with caption, keywords, supp. categories. Then the template was loaded, data written.
The file now has the imported Country, City and Location. Caption/description has survived, but keywords and suppl. categories are gone.
I hope this helps.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Nov 04, 2019 2:07 pm
by xnview
mudo_j wrote: Wed Oct 30, 2019 9:49 pm
The file now has the imported Country, City and Location. Caption/description has survived, but keywords and suppl. categories are gone.
Loading template replace all fields, it's the same in 0.93. When loading a template, must ask to replace or merge fields...
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Thu Nov 12, 2020 4:24 pm
by xnview
See
issue for current status and some details.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Dec 14, 2020 2:40 pm
by xnview
This problem is supposed to be fixed in
XnView MP 0.98.0. Please check and confirm the bug fix here.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Mon Dec 14, 2020 4:08 pm
by jcancha
Unfortunately, the problem is not solved in 0.98.0 either. If you use a template for a single photo, the existing keywords are replaced, no matter if "Merge" is selected or not. "Merge" keeps the caption intact but the keywords are still overwritten.
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Tue Dec 15, 2020 11:34 am
by xnview
jcancha wrote: Mon Dec 14, 2020 4:08 pm
Unfortunately, the problem is not solved in 0.98.0 either. If you use a template for a single photo, the existing keywords are replaced, no matter if "Merge" is selected or not. "Merge" keeps the caption intact but the keywords are still overwritten.
I try with 2_c-k-sc.jpg from your archive, and load 'montmartre' template, keywords are always here if i use 'merge datas'
Re: IPTC-II/XMP - Template always deletes old value (single photo)?
Posted: Tue Dec 15, 2020 8:08 pm
by jcancha
I try with 2_c-k-sc.jpg from your archive, and load 'montmartre' template, keywords are always here if i use 'merge datas'
2_c-k-sc.jpg was sent by mudo_j, not by me. But I have now also tried to replicate the problem using that file. The template 'montmartre' doesn't seem to contain any keywords at all, therefore the existing keywords in 2_c-k-sc.jpg survived. Please try again with my template 'Garten.iptc' attached here. This should overwrite the keywords in 2_c-k-sc.jpg despite 'merge datas'.