I'm trying to use File Find to display all instances of "caption.jpg" (within a large folder tree) that do not have an image Y size of 475 pixels. I can't find a Boolean combination that works - assuming that's the best way to go. Can XY do this?
Thanks for any help.
Find image file based on name & properties
-
klownboy
- Posts: 4462
- Joined: 28 Feb 2012 19:27
- Location: Windows 11, 25H2 Build 26200.8737 at 100% 2560x1440
Re: Find image file based on name & properties
There are many ways to accomplish this, but here's one.Sorry, I noticed afterwards you were looking for a "Find Files" method in lieu of a "scripting" method. Tested though and it works.
Code: Select all
$finder = quicksearch("caption.jpg", <curpath>,"<crlf>"); //run in current path
$total_list = "";
foreach ($caption, $finder, "<crlf>") {
if (property("ImageY", "$caption") != "475") {
$total_list = $total_list . $caption . "<crlf>"}
}
echo $total_list;
-
highend
- Posts: 14953
- Joined: 06 Feb 2011 00:33
- Location: Win Server 2022 @100%
Re: Find image file based on name & properties
:caption.jpg AND !prop:ImageY:1704
One of my scripts helped you out? Please donate via Paypal
-
Papoulka
- Posts: 455
- Joined: 13 Jul 2013 23:41
Re: Find image file based on name & properties
Thanks to both for the helpful replies which show some important general techniques. I'll get a lot of use out of this.
XYplorer Beta Club