Q: Search by file dimension I have many photos. How to search files by its dimensions? For example, i want to search images with exact dimensions 500 x 500 pixels. Is there any utility for this task?

A: With exiftool:
exiftool -q -r -if '$ImageHeight == 500 && 
  $ImageWidth == 500' -p '$Directory/$FileName' /some/dir


A: You can use the identify command that's part of ImageMagick to do this:
$ identify rose.jpg
rose.jpg JPEG 640x480 sRGB 87kb 0.050u 0:01

The 640x480 is the dimensions of the image, rose.jpg.
Using the find command you could do something like this:
$ find somedir -iname '*.jpg' -exec identify {} \;

So for your example:
$ find somedir -iname '*.jpg' -exec "identify {} awk '{print $1, $3}' \
       | grep '500x500'" \;

References


*

*ImageMagick identify command examples
