this simple script searches for .jpg and .png images in -src folder, checks if they are landscapes or portraits and copies them to -dest folder according to flags -l or -p
-src[path] -- source folder
-dest[path] -- destenation folder
-y[flag] -- will create directory if not exist
-p[flag] -- search and copy portraits
-l[flag] -- search and copy landscapes
-r[flag] -- if set fill find for images in -src folder recursively
-minwidth -- if you're looking for a landscape, you may set minimal width of a picture