Would like wallpaper-sized images to stand out...

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
admin
Site Admin
Posts: 60567
Joined: 22 May 2004 16:48
Location: Win8.1 @100%, Win10 @100%
Contact:

Re: Would like wallpaper-sized images to stand out...

Post by admin »

jupe wrote: 02 Oct 2019 02:21 Visual Filters don't support prop: selector...
Wait for the next beta... :)

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Would like wallpaper-sized images to stand out...

Post by kunkel321 »

Edit: Sorry... Didn't see Don's reply. :oops:

Thanks for the reply Jupe!
I think if might not be working though(??)

Can someone else try Quick Search (F3) and paste in
[code]prop:#image.dimensions: 1920 x 1080[/code]

Or some other dims, in a folder that you know has a few matches.

Notes:
In Visual and Power Filter the 'zero found' result is pretty quick. In Quick Search, it's slower, but still none are found.
It does work in Instant Color Filter though.
ste(phen|ve) kunkel

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Would like wallpaper-sized images to stand out...

Post by klownboy »

This is a simple script I did just the other day. If you work with a lot of photos, it does make it easy to see the photos in a specific aspect ratio (e.g., to be used as wallpaper) or from a particular camera. You could adapt it to show photos of a certain size as well. Note the syntax for prop in quicksearch. Of course with Don's next beta this will be easier to accomplish, but I'll probably still use a similar menu layout to accomplish what I want. Note: On this script I'm using a right click detection via AHK (with a perm variable $rmb) as shown here viewtopic.php?f=7&t=18062, but you could easily change that to a standard left click filters and a control left click selects the images.

Code: Select all

"_Initialize";
	if(get("shift") == '1') {sub ghost_off; end 1;}
	unset $rmb;

"  [L]click selects    -    [R]click filters||"
"       IMAGE ASPECT RATIO|D:\Graphics\Icons\crop_02.ico";
"   ●   16:9";
   sub _details;
"   ●   8:5";
   sub _details;
"   ●   3:2";
   sub _details;
"   ●   4:3";
   sub _details;
"   ●   1:1";
   sub _details;
-
"       CAMERA MODEL SELECTION|D:\Graphics\Icons\photo_camera_03.ico";
"   ●   X100S";
	sub _details;
"   ●   DSC-RX100M5";
	sub _details;
"   ●   DMC-ZS100";
	sub _details;
"   ●   iPhone X";
	sub _details;
"   ●   Pixel 3 XL";
	sub _details;
"   ●   DMC-ZS8";
   sub _details;

-
"Ghost Filter off : ghost_off";
	ghost("", 0);
	end 1;

"_details";
	global $title_info;
	$title_info = substr(caller("caption"),7,,);       //$title_info = (gettoken(caller("caption"), -1," ", "t"));
		if(exists(<curitem>) == 2) {$path = <curitem>;} else {$path = <curpath>;}
		$images = quicksearch("*.jpg /n",,"|");
		end gettoken($images, "count", "|") < 1, "There are no JPG files in this folder.";

	if !(gettokenindex(':', $title_info)) {
		sub _camera; end 1;}

		if($rmb == 1) {                  // or use modifier key control    if(mod == '2') {
// *** filter images
			$selected = quicksearch("prop:#AspectRatio: != $title_info /n",,"|");
			end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
			ghost($selected, '1');
			end 1;}
		else {
// *** selection of images
			$selected = quicksearch("prop:#AspectRatio: == $title_info /n",,"|");
			end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
			selectitems $selected;
			end 1;}

"_camera";
	global $title_info;
		if($rmb == 1) {                  // or use modifier key control    if(mod == '2') {
// *** filter images
			$selected = quicksearch("prop:#image.cameramodel: != $title_info /n",,"|");
			end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
			ghost($selected, '1');
			end 1;}
		else {
// *** selection of images
			$selected = quicksearch("prop:#image.cameramodel: == $title_info /n",,"|");
			end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
			selectitems $selected;
			end 1;}

"_Terminate";
	unset $rmb;
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

kunkel321
Posts: 645
Joined: 10 Jun 2012 03:45
Location: Near Seattle

Re: Would like wallpaper-sized images to stand out...

Post by kunkel321 »

Yep, it works now -- thanks Don!

Thanks for the script Klownboy! It's a it over my head, but I will check it out.
ste(phen|ve) kunkel

klownboy
Posts: 4140
Joined: 28 Feb 2012 19:27

Re: Would like wallpaper-sized images to stand out...

Post by klownboy »

Hi kunkel321, I've updated that script above to use Don's new enhancements to visual filters. I'll post it later today as an update to this post.

Here's that update to the above script. This one utilizes Don's prop additions to visual filters. You can change the prop values to suit. If you'd rather search the folder for images with specific dimensions or a different aspect ratio or camera, that's easy to do. If you assign the script to a CTB, if you hold control key down when you click on the button, you'll clear any existing selections or filters.

Code: Select all

"_Initialize";
   if(Get('Trigger', 'CTBIndex') > '0' AND get("shift") == '2') {sub filter_off; end 1;}

"  [L]click filters   -   [Ctrl-L]click selects||"
"       IMAGE ASPECT RATIO|:vfset";
"   ●   16:9";
   sub _details;
"   ●   8:5";
   sub _details;
"   ●   3:2";
   sub _details;
"   ●   4:3";
   sub _details;
"   ●   1:1";
	sub _details;
-
"       CAMERA MODEL SELECTION|:select";
"   ●   X100S";
	sub _details;
"   ●   DSC-RX100M5";
	sub _details;
"   ●   DMC-ZS100";
	sub _details;
"   ●   iPhone X";
	sub _details;
"   ●   Pixel 3 XL";
	sub _details;
"   ●   DMC-ZS8";
	sub _details;
-
"Filters && selections cleared : filter_off";
	filter; sel;
	status "Filters and selections cleared."; end 1;

"_details";
	global $title_info, $mod;
	$mod = get("shift");

	$title_info = substr(caller("caption"),7,,);       //$title_info = (gettoken(caller("caption"), -1," ", "t"));
		$images = quicksearch("/types={:Image} /n",,"|");
		end gettoken($images, "count", "|") < 1, "There are no image files in this folder.";

	if !(gettokenindex(':', $title_info)) {
		sub _camera; end 1;}

	if($mod == '2') {
// *** selection of images
		$selected = quicksearch("prop:#AspectRatio: $title_info /n",,"|");
		end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
		selectitems $selected;
		end 1;}
	else {
// *** filter images
			filter "prop:#AspectRatio: $title_info", 4;
			end 1;}
"_camera";
	global $title_info, $mod;
	text $title_info;
	if($mod == 2) {step;
		$selected = quicksearch("prop:CameraModel: $title_info /n",,"|");
		end gettoken($selected, "count", "|") < 1, "There are no $title_info images in this folder.";
		selectitems $selected;
		end 1;}
	else {
		filter "prop:CameraModel: $title_info", 4;
		end 1;}
Windows 11, 23H2 Build 22631.3447 at 100% 2560x1440

Post Reply