May be a Bug - Hard to Explain

Ask for help and post your question on how to use XnView MP.

Moderators: helmut, XnTriq, xnview

Post Reply
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

May be a Bug - Hard to Explain

Post by BuckSkin »

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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: May be a Bug - Hard to Explain

Post by xnview »

with 1.5.0? what do you have in Options of IPTC dialog?
Pierre.
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: May be a Bug - Hard to Explain

Post by BuckSkin »

"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
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: May be a Bug - Hard to Explain

Post by michel038 »

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
merge.png (12.83 KiB) Viewed 4060 times
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: May be a Bug - Hard to Explain

Post by BuckSkin »

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
Thank You.

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.
User avatar
xnview
Author of XnView
Posts: 46236
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: May be a Bug - Hard to Explain

Post by xnview »

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 ?
It's fixed, it was in previous version.

If you use 'Merge data', is it working?
Pierre.
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: May be a Bug - Hard to Explain

Post by BuckSkin »

xnview wrote: Tue Jul 18, 2023 6:51 am
If you use 'Merge data', is it working?
Yes; if I use Merge Data the Keywords stay.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: May be a Bug - Hard to Explain

Post by michel038 »

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.
How can we reproduce ?

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 8)
Last edited by michel038 on Wed Jul 19, 2023 6:23 pm, edited 1 time in total.
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: May be a Bug - Hard to Explain

Post by BuckSkin »

michel038 wrote: Tue Jul 18, 2023 4:02 pm
How can we reproduce ?
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.

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 ...
Thanks; this is with Merge Data remaining checked ?

michel038 wrote: Tue Jul 18, 2023 4:02 pm And don't forget that you can create a toolbar button with templates 8)
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 ?

Thanks.
User avatar
michel038
XnThusiast
Posts: 1468
Joined: Tue Sep 27, 2016 8:18 am
Location: France
Contact:

Re: May be a Bug - Hard to Explain

Post by michel038 »

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

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>
2)
this is with Merge Data remaining checked ?
Yes
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
BuckSkin
Posts: 138
Joined: Thu Aug 18, 2016 4:09 am

Re: May be a Bug - Hard to Explain

Post by BuckSkin »

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
Thanks; I will definitely be checking this out.

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.
Post Reply