I need to filter on pixel size

Post Reply
roddyt
Posts: 88
Joined: 28 Jun 15 16:59

I need to filter on pixel size

Post by roddyt »

I need to identify photos that are larger than a certain pixel size (in effect, X dimension times Y dimension). I’ve looked all over, and the only metadata field I can find is %ImageMegapixels. And the only places I can find a reference to it are in the New Custom Field of the info pane, and in Custom Thumbnail Info (under the Add File Part menu).

I created a custom field, and it shows in the Info pane, but for whatever reason, that entry is not included in the list of Custom Fields, which is where I need it to use it either in a Dynamic Search, or the new fancy Advanced Search.

Is there a simple solution for this that I am missing?
Hert
Posts: 7909
Joined: 13 Sep 03 6:24

Re: I need to filter on pixel size

Post by Hert »

%ImageMegaPixels is not a metadata field, but calculated based on the image dimensions.

Your best approach is to first find the image you want to search in, then use the Filter button in the filter bar -> From Repository -> Filter by Macro Command and use like this:

FilterByMacro.png
FilterByMacro.png (30.04 KiB) Viewed 6077 times
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
roddyt
Posts: 88
Joined: 28 Jun 15 16:59

Re: I need to filter on pixel size

Post by roddyt »

That's exactly what I needed. Thanks.

Though it took me a while to get there. To begin with, Filter by Macro Command was not in the menu, though I could swear that I've seen it in the past.
Screenshot 2025-03-06 at 11.41.45 AM.png
Screenshot 2025-03-06 at 11.41.45 AM.png (460.14 KiB) Viewed 5934 times
I went to the repository and downloaded the script from there, but then I had to figure out what to do with it, as the installation instructions say n.a. Fortunately, I knew where to go in the library and found the scripts folder. I put it in there and all is well now. Thanks again.
Hert
Posts: 7909
Joined: 13 Sep 03 6:24

Re: I need to filter on pixel size

Post by Hert »

This script was added yesterday. In earlier PSU versions the script was deployed with PSU.

Check if you see the script in From Repository after restarting PSU. If it is then I recommend that you delete the local copy you created (unless you need it while offline). If the script is updated at some point of time in the future then your downloaded copy will not be updated.
This is a user-to-user forum. If you have suggestions, requests or need support then please send a message
roddyt
Posts: 88
Joined: 28 Jun 15 16:59

Re: I need to filter on pixel size

Post by roddyt »

I guess it's a good thing I didn't go looking for the script any earlier than I did. I noticed that it had an uploaded date and time just 15 minutes earlier than my current time.

I had already done what you recommended. When I put the script in the library and restarted, it was then shown both in the main menu and the From Repository submenu. I was curious and removed the script; after I restarted, it was only in the From Repository submenu. I'm glad you told me that that is the proper thing to do, so now I won't think to add it back in.
Post Reply