Page 1 of 1

Visual Filters for properties

Posted: 20 Aug 2018 16:01
by klownboy
Hi Don, This has probably came up before but I think it would be a nice addition for us amateur photographers to be able to filter a photo aspect ratio or on a camera model such as: prop:#AspectRatio: 3:2 or prop:CameraModel:*DSC-RX100M5* Of course it wouldn't have to be in the same format as these instant color filers.

Those are the two properties I'm most interested in. I know I can do quick searches to show these particulars in a tab or even the current tab, but doing that results in redrawing the thumbnails when done the first time. I can cache the result, but who needs more thumbnail caches of photos we already have thumbnailed. I could do paperfolders as well but for simple things like this, I really don't want more paperfolders and the additional thumbnail caches. Thanks.

Re: Visual Filters for properties

Posted: 10 Sep 2019 14:46
by klownboy
This one is old and getting moldy, but sure would be nice to have. Any chance you could take a look. :)

Re: Visual Filters for properties

Posted: 02 Oct 2019 10:14
by admin
It will come soon, probably today... :)

Re: Visual Filters for properties

Posted: 02 Oct 2019 12:41
by klownboy
That's great! Now I won't have to do what I was doing over here. viewtopic.php?f=5&t=20977#p173011 which was using "inverted" quick search to find images with a certain aspect ratio (i.e., 16:9) and then using a ghost filter to hide those images that weren't 16:9. It'll be great to see only images from a particular camera as well. :tup:

Re: Visual Filters for properties

Posted: 02 Oct 2019 19:58
by klownboy
New filters using prop are working great. Thanks. The first place I tried it was in a script using SC filter. You may want to mention that (i.e., working with SC filter) at least in your Help update with new example.

Should this work as visual filter (via manage visual filters) combining {:Image} with prop? "Image Aspect Ratio 16:9" {:Image} AND "prop:#AspectRatio: 16:9". This doesn't seem to work with or without the prop quoting. The prop by itself works fine.

Re: Visual Filters for properties

Posted: 02 Oct 2019 20:34
by admin
That looks like a brand new bug... :bug: ... tomorrow...

Re: Visual Filters for properties

Posted: 03 Oct 2019 05:45
by jupe
At the risk of going off-topic, it seems another new bug has been introduced with this new VF implementation, now certain color filters are not working, below is a couple quick fictitious examples that are now non-functional entries in ICF, but the same applies to normal CF's.

Code: Select all

"NOT WORKING" L:name: a*>FFFFFF,B97026
"NOT WORKING EITHER" name f: a*>FFFFFF,B97026

Re: Visual Filters for properties

Posted: 03 Oct 2019 10:45
by admin
klownboy wrote: 02 Oct 2019 19:58 Should this work as visual filter (via manage visual filters) combining {:Image} with prop? "Image Aspect Ratio 16:9" {:Image} AND "prop:#AspectRatio: 16:9". This doesn't seem to work with or without the prop quoting. The prop by itself works fine.
Will work in next beta. The correct way is without quoting:
{:Image} AND prop:#AspectRatio: 16:9

FYI, the parser can also handle this (so the various colons (:) are treated correctly):
{:Image} AND prop:#AspectRatio: 16:9 AND size: > 100KB

Re: Visual Filters for properties

Posted: 03 Oct 2019 11:00
by admin
jupe wrote: 03 Oct 2019 05:45 At the risk of going off-topic, it seems another new bug has been introduced with this new VF implementation, now certain color filters are not working, below is a couple quick fictitious examples that are now non-functional entries in ICF, but the same applies to normal CF's.

Code: Select all

"NOT WORKING" L:name: a*>FFFFFF,B97026
"NOT WORKING EITHER" name f: a*>FFFFFF,B97026
Confirmed and fixed in next beta.

Re: Visual Filters for properties

Posted: 03 Oct 2019 14:30
by klownboy
Working great now. Thanks. :tup: By the way I would assume that there is probably not much benefit in use of {:Image} along with prop:#AspectRatio: 8:5 when you are in a image folder containing basically nothing but images, but there may be a benefit in a very mixed folder loaded with non-images as well. Is that true? I thought there was something in the Help concerning that point.
admin wrote: 03 Oct 2019 10:45
The correct way is without quoting:
{:Image} AND prop:#AspectRatio: 16:9
Yes, I figured that but I had incorrectly tried quoting also when testing.

Re: Visual Filters for properties

Posted: 03 Oct 2019 14:44
by admin
Absolutely true! The AND-ed parts are evaluated from left to right, and once a check is FALSE the remaining checks are not even tried. So you should put the faster checks to the left.