ExifTool - extracting image Ratings

Started by Archive, May 12, 2010, 08:54:34 AM

Previous topic - Next topic

Archive

[Originally posted by disco on 2009-04-12 12:00:19-07]

Hi all,

Hoping someone will be able to point me in the right direction.

This is what I am wanting to do - write a Perl script that daily checks for new images, and based upon the user Rating of the file (eg 1 star, 2 star, 3 star, 4 star, 5 star) - find all 4 and 5 star images, and move them to a different directory which is date based.

Why? Well, I want to only backup files to external storage which has a 4 or 5 star rating. The majority of images are 3 and below, and the 4's and 5's are the treasured family pics - so I will back the 3 and below up locally, but send the important ones over the wire to remote storage which is more costly, but more high availability.

I have had a look through the documentation and installed it, and can't quite find how I can extract that info - ratings assigned to the file?

Any ideas would be appreciated?

Thanks

Archive

[Originally posted by exiftool on 2009-04-12 14:42:44-07]

I depends on which rating tag you are using.  Assuming "Rating", this
command line is close to what you want:

Code:
exiftool -if '$rating >= 4' -d '/good_pictures/%Y/%m/%d' '-directory<createdate' DIR

(use double quotes instead of single quotes if you are in Windows)

- Phil