You can use the terminal to do this. The following command should work:
find /path/to/the/folder \
-name "*.jpg" \
-exec bash -c "sips -g pixelHeight -g pixelWidth {} | grep -E ' [12]?[0-9]{0,2}$' >/dev/null" \;\
-print
That command will find all JPEG files under /path/to/the/folder
which have a width or a height of between 1 and 299 pixels.
Replace /path/to/the/folder
with the actual path to your folder.
You can change "*.jpg"
to "*.gif"
to find GIF files instead.
You can change [12]?[0-9]{0,2}
to change the size of the pictures you wish to locate. For example, to find pictures smaller than 500 pixels, use [1234]?[0-9]{0,2}
If you want to review which pictures this command finds, use:
find /path/to/the/folder \
-name "*.jpg" \
-exec bash -c "sips -g pixelHeight -g pixelWidth {} | grep -E ' [12]?[0-9]{0,2}$' >/dev/null" \; \
-exec mv {} /path/to/some/other/folder \;
Replace path/to/some/other/folder
with the folder you want the files moved to, and that command will move the files it finds there.
The way this works is as follows:
The sips
command is the scriptable image processing system. The terminal command sips -g pixelHeight -g pixelWidth some.jpg
will print out the width and height of the JPEG file.
The find
command, as one might expect, finds files. -exec
passed to find tells find
to execute the specified command and only return files for which the command returns a successful result.
The command bash -c "sips -g pixelHeight -g pixelWidth {} | grep -E ' [12]?[0-9]{0,2}$'
invokes a shell, runs sips
to get the image size, and then runs grep
, which searches text, asking grep
to search for either a 1
or a 2
followed by between zero and two digits (0
through 9
). This is a regular expression, and it matches the numbers (strings) 1
through 299
You can use the built in features of OS X to help you narrow down your personal images from system and application images.
AFAIK most Application images and system images are not going to be large. Or wider then either 512 pixels or 1024 pixels.
So I assume all the files are in single folder and your personal ones are taken on a camera or Smart phone so will be of a larger size.
Use Command +F keys to bring up the search options for the open window of the folder.
Set up your search criteria too.
Kind is Image.
And either of the below or a combination.
File size is greater than 300kb
Pixel width is greater than 512
And so on.
There are many more options to use for the search under the other.. menu.
You can then move the ones remaining in the results out into a another folder.
Use iPhoto to import the potential personal ones for you final check
Hopefully you will only have a few that are not.
Best Answer
The Photos Timeline view is sorted by the date embedded in the photo, not by date added. All other views are also sorted by the date of the photo except the All Photos album, which is date added. You can't change the sort view of any of the application created albums.
The last import view shows only the last import, and does not include photos from PhotoStream.
Work around: you can create a smart album and it gives a variety of ways to sort the photos in the new smart album (date range, title, keyword, etc)