photools.com Community

IMatch Discussion Boards => General Discussion and Questions => Topic started by: mosdubindi1 on May 14, 2024, 07:55:14 AM

Title: XMP keyword counter
Post by: mosdubindi1 on May 14, 2024, 07:55:14 AM
Hello Mario,

I need to have counter for XMP keywords. It is helpful to control number of non-hierarchical keywords for stock sites. Unfortunately I cannot find solution for this in IMatch. Could you pls. help?

BR,
Dmitry
Title: Re: XMP keyword counter
Post by: Mario on May 14, 2024, 09:29:05 AM
You can use this variable

{File.MD.hierarchicalkeywords|count:true}

in VarToy or in a custom File Window layout (https://www.photools.com/help/imatch/fw_layouts.htm) (in a custom template (https://www.photools.com/help/imatch/fw_layouts.htm?dl=custom-templates)) to see the number of keywords assigned to a file.
Title: Re: XMP keyword counter
Post by: mosdubindi1 on May 14, 2024, 09:59:19 AM
Thank you Mario,

{File.MD.hierarchicalkeywords|count:true} returns number of hierarchical keywords, which gives 1 in the given example. However from stock agency point of view there are 6 keywords separated by comma in my case.

Keywords: LOCATION (1), Austria (2), Vienna (3), Wien (4), Innere Stadt (5), Vindobona (6)

Is it possible to get counter using such logic - each XMP value within list separator (defined in Metadata Preferences) is equal to 1 keyword?
Title: Re: XMP keyword counter
Post by: Mario on May 14, 2024, 10:04:23 AM
I see. You force IMatch to break hierarchies into individual keywords.
In that case, just use XMP subject tag for the variable:

{File.MD.subject|count:true}

Variables allow you to access any metadata tag, either via a convenient shortcode (https://www.photools.com/help/imatch/md_shortcodes.htm) or via the full tag key.
Title: Re: XMP keyword counter
Post by: mosdubindi1 on May 14, 2024, 10:35:16 AM
Thank you Mario, it is fine with me.
Title: Re: XMP keyword counter
Post by: Mario on May 16, 2024, 01:30:48 PM
I have thought about this and decided to make a small change to the Metadata Panel.
It now displays the number of keywords permanently for XMP::subject, XMP::hierarchicalSubject and IPTC::Keywords:

rn_2023_10_001.jpg

This should be helpful for all photographers which have to follow strict rules for the number of minimal and maximal allowed keywords. Without the need to use variables in File Window layouts.

All you need to do is to include the flat keyword tag in one of your MD panel layouts. It is read-only (since IMatch maintains it) but it shows the number of keywords.

Same for hierarchicalSubject. When you click into the field, it shows the number of characters like all other tags, and when you select it, it shows the number of keywords again.
Title: Re: XMP keyword counter
Post by: sinus on May 16, 2024, 02:09:21 PM
This is very nice.

We can also see the number of letters in e.g. the description or headline in the metadata panel.
Which is very cool!
But this is only displayed when you click in the metadata field.
Which is a pity, it would be great if this was also displayed when you just click on the thumbnail, because then I could simply go from thumb to thumb and see the amount of letters.

Question:
Is that also the case here?
Title: Re: XMP keyword counter
Post by: Mario on May 16, 2024, 02:21:24 PM
The Metadata Panel displays the number of characters only when the editor is active. This has not changed.
Add a feature request for your requirement and let's see how many users would like that.
Title: Re: XMP keyword counter
Post by: graham1 on May 18, 2024, 04:39:19 PM
Quote from: sinus on May 16, 2024, 02:09:21 PMThis is very nice.
We can also see the number of letters in e.g. the description or headline in the metadata panel.
Which is very cool!
But this is only displayed when you click in the metadata field.
Which is a pity, it would be great if this was also displayed when you just click on the thumbnail, because then I could simply go from thumb to thumb and see the amount of letters.
Question:
Is that also the case here?
You can already do this.  The attachments are one of my thumbnails and the Layout Editor settings to achieve this.

Thumbnail.JPGLayoutEditor.JPG
Graham
Title: Re: XMP keyword counter
Post by: graham1 on May 18, 2024, 04:44:02 PM
Oops, the footer settings were a bit cut off - here are the missing entries.

Graham
Title: Re: XMP keyword counter
Post by: Jingo on May 19, 2024, 05:12:38 PM
I think Markus was saying it would be nice to see the counters in the Metadata panel without having to click into the panel directly when navigating via thumbnails... I could be wrong too. 

I also include keyword values and rating details in my thumbnails (see below - the power of IM!).. but it would be convenient to see these additional counts directly in the panel.

g0h0lWJg9S.png
Title: Re: XMP keyword counter
Post by: Mario on May 19, 2024, 05:42:43 PM
QuoteI think Markus was saying it would be nice to see the counters in the Metadata panel without having to click into the panel directly when navigating via thumbnails... I could be wrong too.
That is what I understood myself, too.
But I think that this would cause too much clutter, making things look a lot more noisy. I doubt many users really need to know how many characters a description or a title has all the time. For keywords, this makes sense, especially for stock photographers.

I might be wrong. Hence my suggestion to @sinus to add a separate feature request.

And yes, you can show the information in a File Window layout via variables, if needed.
Title: Re: XMP keyword counter
Post by: sinus on May 19, 2024, 06:12:40 PM
Thanks Jingo, and Mario

You are both correct, like Andy wrote "... it would be nice to see the counters in the Metadata panel without having to click into the panel directly when navigating via thumbnails."

But before I make a FR (and maybe work for Mario) I will think again about this.
BTW, the reason is mostly, because I work a lot with D&P, and there you can not see all text, if it has more letters then the size of the text-field in D&P allow.

Hence it would be nice before I open D&P to see, if the letters in the description - field (and maybe headline) is not too big.

I will think about this, but thanks for mention it, Andy.

Title: Re: XMP keyword counter
Post by: graham1 on May 19, 2024, 08:43:07 PM
Quote from: sinus on May 19, 2024, 06:12:40 PMYou are both correct, like Andy wrote "... it would be nice to see the counters in the Metadata panel without having to click into the panel directly when navigating via thumbnails."
I of course realised this. 

Perhaps I should have made it clearer that my point was that if the number of keywords is visible in the thumbnail footer, that entirely obviates the need to click into the panel at all when navigating via thumbnails, because the required information is shown in each thumbnail all the time.  Nevertheless, if having the information always on display, as Mario is implementing, helps some users, all well and good, but there are already ways to see that information for each image without clicking into the Metadata panel.

Graham
Title: Re: XMP keyword counter
Post by: PandDLong on May 20, 2024, 08:32:57 AM
Quote from: sinus on May 19, 2024, 06:12:40 PMBTW, the reason is mostly, because I work a lot with D&P, and there you can not see all text, if it has more letters then the size of the text-field in D&P allow.

Hence it would be nice before I open D&P to see, if the letters in the description - field (and maybe headline) is not too big.

I have a similar situation with D&P where I want to make sure certain fields will "fit".

I created a File Window Layout that tests for all of the situations that may cause a problem for a D&P layout in the footers.  I use icons which are only displayed if there is a problem - I find it pretty quick to look at a large number of files and find the ones that may cause a problem - then I go to the metadata panel and make changes until the icon(s) disappear for that file.

After experimenting, I found this method where the footers are clear unless there is a problem, makes it very quick as I am not really reading anything - just looking for icons.

Food for thought.

Michael