I want to separate portrait format images from landscape.  I tried searching with w>h but it seems that those terms can't be used in that way. 
Is there a way to do this? And if there is, how would it deal with a file scanned in landscape format and then rotated to show it as portrait?
David Hoffman