Clicky

dedalus

I was trying to find out some images using "Pixel Width" and/or "Pixel Height".
There are "Less than", "Greater than", and "Equal to" … a given pixel value.

Ok. But,.. without any "size search" I just get 4750 images.
Then without any changes in search criteria…
… If I set Height "Equal to" 400,00 (px) (not nice to see ,00 pixel) I get 44 images.
… If I set Height "Less than" 400,00 I get 2331 images
… If I set Height "Greater than" 400,00 I get 2014 images
So the total is 4389 images… not 4750 as before.

I'm wondering those 361 images more found without searching for size.
Where have they gone?

I think it's an issue of Spotlight rather than HoudahSpot. But this doesn't solve my question. Does anybody know any trick, have any hint or did I miss anything?

0 0
houdah
Hi!

You could negate the criteria. Find images that are NOT (equal to 400 OR less than 400 OR greater than 400).

I am guessing that the images you will find will have no size info at all.

Best,
Pierre Bernard
Houdah Software s.à r.l.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0
dedalus

Hi,

I think you did a right guess. Sometimes actually using ⌘ i on an image file in my Mac, I don't see any image's size at all.

Any way I really don't know how to do a NOT search. Or better, there is not directly a "NOT" operator to run NOT (equal to 400 and so on). Then I did a group true for "image" and a group "none" with the Height equal to 400 and so on.

But I always get 4750 images, and probably I did a mistake with the groups.
Using Terminal I try to run:

mdfind -onlyin ~/Downloads/ 'kMDItemPixelHeight == ""' -count image

getting 0. And I run it, but maybe kMDItemPixelHeight is not even there in these cases, and the query necessarily returns 0.

 

0 0
houdah
Hi!

To do a NOT search, you need to nest the criteria in a NONE group.

NONE of the following is true:
- Pixel Height equals 400
- Pixel Height less than 400
- Pixel Height greater than 400

In Terminal, try:

mdfind  "kMDItemPixelHeight != '*' && kMDItemContentTypeTree == 'public.image'"

Best,
Pierre Bernard
Houdah Software s.à r.l.
Houdah Software s. à r. l.
https://www.houdah.com

HoudahGeo: One-stop photo geocoding
HoudahSpot: Advanced file search utility
Tembo: Easy and effective file search
0 0