Searching based on XMP fields
Posted: Thu Jan 18, 2018 10:16 pm
Hi there-
We have some images taken underwater using a novel scientific instrument. I have used python to embed XMP information directly into the .png files, the XMP fields include numerical fields such as depth, temperature, salinity. I like that XnView MP allows me to view the XMP data that I have created, most other tools do not.
Under Tools->Search (ctrl+F), there is a dialog box that allows me to search/filter based on specific fields. This includes an option for XMP fields by using the "Add>>" button, then creating a condition for XMP: All Fields. When I enter an exact numerical value, such as "13.20", it works, and I can find all images that have a value of "13.20" in the XMP temperature field that I have created. So I know I am properly embedding the XMP in a format that XnView MP can currently understand. However, the only option for XMP searching is currently a text field, where the default value is "XMP: All Fields _is_ ___________" where I can choose "_is_", "_is_not_", "_contains_", etc. If I choose instead to search on the 'Add>> File size' condition, I can choose "_is_less_than_", "_between_" etc. I would really like to be able to have that logic for XMP searching.
Also, there are some options under "Add>>XMP>" that are pre-populated with values that I did not choose, these include
'Creator', 'Description', 'Copyright', 'Subject', 'Title', etc. I have many XMP fields, and I only really want to be searching on a single field. Even if it is too hard for those to be loaded dynamically from all the XMP information from each individual image, would it be possible to have a .ini or .conf file where I could specify the names of my XMP fields (such as Temp_deg_C or Pressure_dbar)? I think then search speed might be improved, because I have over 50 different XMP fields. So this would make things even easier. This file could specify whether or not it was a numerical field, and even the label. My images will always have the same fields, so I am not concerned about the field names changing from one field to the next.
Similarly, under view->sort by, there is a list of about 20 options including name, file size, modification date, etc. There is also an option for 'Custom' (at the bottom, just above 'ascending' and 'descending'). I can not figure out how or where the parameters for this 'custom' sort are accessed or changed, but that also might be very useful, if it could be applied to the XMP fields.
Any of these would be pretty useful for our lab, at a University. We would donate some amount if these worked well. I think they would be pretty easy, because most of the logic already works, and there would be no significant user interface changes.
Thanks!
We have some images taken underwater using a novel scientific instrument. I have used python to embed XMP information directly into the .png files, the XMP fields include numerical fields such as depth, temperature, salinity. I like that XnView MP allows me to view the XMP data that I have created, most other tools do not.
Under Tools->Search (ctrl+F), there is a dialog box that allows me to search/filter based on specific fields. This includes an option for XMP fields by using the "Add>>" button, then creating a condition for XMP: All Fields. When I enter an exact numerical value, such as "13.20", it works, and I can find all images that have a value of "13.20" in the XMP temperature field that I have created. So I know I am properly embedding the XMP in a format that XnView MP can currently understand. However, the only option for XMP searching is currently a text field, where the default value is "XMP: All Fields _is_ ___________" where I can choose "_is_", "_is_not_", "_contains_", etc. If I choose instead to search on the 'Add>> File size' condition, I can choose "_is_less_than_", "_between_" etc. I would really like to be able to have that logic for XMP searching.
Also, there are some options under "Add>>XMP>" that are pre-populated with values that I did not choose, these include
'Creator', 'Description', 'Copyright', 'Subject', 'Title', etc. I have many XMP fields, and I only really want to be searching on a single field. Even if it is too hard for those to be loaded dynamically from all the XMP information from each individual image, would it be possible to have a .ini or .conf file where I could specify the names of my XMP fields (such as Temp_deg_C or Pressure_dbar)? I think then search speed might be improved, because I have over 50 different XMP fields. So this would make things even easier. This file could specify whether or not it was a numerical field, and even the label. My images will always have the same fields, so I am not concerned about the field names changing from one field to the next.
Similarly, under view->sort by, there is a list of about 20 options including name, file size, modification date, etc. There is also an option for 'Custom' (at the bottom, just above 'ascending' and 'descending'). I can not figure out how or where the parameters for this 'custom' sort are accessed or changed, but that also might be very useful, if it could be applied to the XMP fields.
Any of these would be pretty useful for our lab, at a University. We would donate some amount if these worked well. I think they would be pretty easy, because most of the logic already works, and there would be no significant user interface changes.
Thanks!