1.4.3 Xmp search not working without IPTC

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

Moderators: helmut, XnTriq, xnview, Dreamer

User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

1.4.3 Xmp search not working without IPTC

Post by Pabloto »

XnView: Version 1.4.3 64bits (Feb 25 2023)
MacOs 12.6.3

Hello.

<Short description of the problem.>
No search neither quick search do find the keyword applied from "Edit XMP" by the sidecar file itself. Both search and quick search find the keyword depending on the IPTC field which is created when " Edit XMP - Options - Mode = XMP Update or create IPTC" .
Personally, I choosed XMP sidecar files because are a standard, and don't write data on the photo (looking for the work of keywording being future proof and not dependent of a specific software)

Effect: An XMP sidecar file generated in Xnview depends on IPTC for searchability. Its no clear to me about this XMP sidecar standardization

To reproduce:
1. <Step 1> Using "Settings - Metadata - Sidecar - Update or create XMP Sidecar" Apply a keyword from " Edit XMP" with "Options - Mode = XMP Update or create IPTC" Perform search of the keyword ( XMP- all Fields) or Quick search
2. <Step 2> "Clear all fields" in "Edit IPTC" Perform search of the keyword ( XMP- all Fields) or Quick search

Actual behaviour (bug): XNview XMP sidecar files are not searchable by themselves :bug:

Expected behaviour: XMP sidecar files from other software (Darktable in this case) are searchable in XnView by themselve without any IPTC field being involved.

A related last thing: Once you have "Cleared all fields" in a photo using "Edit IPTC" , subsequent writings of keywords in " Edit XMP - Options - Mode = XMP Update or create IPTC" will fail to replicate the related IPTC field on that photo ( looks like clearing IPTC fields once, prevents the option XMP Update or create IPTC)
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

Hi. Must correct one thing, the test files I used from Darktable, have embeded XMP not sidecar. So I deduct the searching bug appears only when a sidecar XMP is used.
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

Pabloto wrote: Wed Mar 15, 2023 7:58 am Hi. Must correct one thing, the test files I used from Darktable, have embeded XMP not sidecar. So I deduct the searching bug appears only when a sidecar XMP is used.
could you send me your test files?
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

PM with link to test files sent
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

thanks for the files. So you would like to have .xmp in result?
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

No it's not the issue. I'm doing right creating sidecar XMP in Xnview.

The point is that these sidecar XMP files don't work for search or quick search when you look for a keyword previously created with XNView. I guess XNView uses solely embedded metadata for search.

If you perform a search by keywords over the attached files, the jpg with its sidecar XMP will not work (bear in mind this file has been "Clear al IPTC fields")
The tif will work. This tif file doesn't have IPTC, but embedded XMP metadata keywords.

Both files don't have IPTC, but XMP keywords. The jpg with sidecar XMP is not searchable, the tif with embedded XMP it is.
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

what do you search as keyword?
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

For the jpg "playa"
For the tif "crane"
Before (Clear al IPTC fields) the jpg "playa" was giving result on search
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

jpeg file has no keywords (dc:Subject) 'playa', it's Iptc4xmpExt:Event
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

Right, too rush methodology the one I done to test. I moved two keywords to different fields several times to test if quick search can find these keywords in fields different to description (to test if the problem was the field description dc: ) Next day I sent you the file, had forgotten this "moving to different fields test".

Anyway you can try with the keyword that still remains in field description, quick search will fail to find the file.

I uploaded to the PM shared link another jpg working in XNview quick search. The difference in this jpg is that I didn't apply the "Clear al IPTC fields"

To reproduce with newly uploaded jpg:
1. <Step 1> Perform quick search for the word in (dc:Subject) 'boipeba', = It works
2. <Step 2> Right click the file --> Edit IPTC / clic on -- > Clear all fields (or manually clear 'boipeba' from the field caption)
3. <Step 3> Perform quick search for the word in (dc:Subject) 'boipeba', = It doesn't work

Actual behaviour (bug): Search depends on IPTC even using XMP sidecar for keywording :bug:

Expected behaviour: Search XMP sidecar keywords independently of IPTC
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

So you talk about 'Quick search' not Search dialog. As you can see in Settings>Browser>Search, only IPTC metadata can be used for Quick Search.
Search works...
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

Right. I Learned this, thanks

I was going to ask you why the tif which has not IPTC at all was working in Quick search... but I realized its working because "crane" is also a category created as I had checked "Import XMP subject or IPTC keyword to Catalog's Categories" (now unchecked) .... and quick search can work with catalog keywords.

I still have the issue I wrote on the closed topic (maybe not the right place because is Closed). As soon as edit XMP --> Write" -> the thumbnail disappears from the lighttable (files are stored on a NAS) Right at the same time that thumbnail dissapears, some options from XnView in titlebar go greyed.
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

Pabloto wrote: Thu Mar 23, 2023 6:29 pm Right. I Learned this, thanks

I was going to ask you why the tif which has not IPTC at all was working in Quick search... but I realized its working because "crane" is also a category created as I had checked "Import XMP subject or IPTC keyword to Catalog's Categories" (now unchecked) .... and quick search can work with catalog keywords.
Tif file has embedded xmp data
I still have the issue I wrote on the closed topic (maybe not the right place because is Closed). As soon as edit XMP --> Write" -> the thumbnail disappears from the lighttable (files are stored on a NAS) Right at the same time that thumbnail dissapears, some options from XnView in titlebar go greyed.
which options?
Pierre.
User avatar
Pabloto
Posts: 10
Joined: Tue Mar 14, 2023 10:39 pm

Re: 1.4.3 Xmp search not working without IPTC

Post by Pabloto »

Tif file has embedded xmp data
But I'm refering to quick search , which works only with IPTC ¿Isn't it? ¿Or is there a different treatement in terms of searchability for XMP embedded VS XMP sidecar?
which options?
Screenshot 2023-03-14 at 23.59.38.png
Screenshot 2023-03-14 at 23.59.38.png (37.98 KiB) Viewed 789 times
User avatar
xnview
Author of XnView
Posts: 46247
Joined: Mon Oct 13, 2003 7:31 am
Location: France
Contact:

Re: 1.4.3 Xmp search not working without IPTC

Post by xnview »

Pabloto wrote: Fri Mar 24, 2023 9:15 am
Tif file has embedded xmp data
But I'm refering to quick search , which works only with IPTC ¿Isn't it? ¿Or is there a different treatement in terms of searchability for XMP embedded VS XMP sidecar?
Sorry you're right XMP subject was imported so Quick search find it
which options?
Screenshot 2023-03-14 at 23.59.38.png
Always after 'Edit XMP>Write', 'Preferences' becomes greyed??
Pierre.
Post Reply