Time to be with your loved ones

Time to be with loved ones

by sat

submit your photo


Hall of Fame
View past winners from this year

Please participate in Meta
and help us grow.

Take the 2-minute tour ×
Photography Stack Exchange is a question and answer site for professional, enthusiast and amateur photographers. It's 100% free, no registration required.

Can I use a tool like exif2 or exiftool to programatically inspect and manipulate the flag used for "Rejected" in Lightroom? I can't find a field that seems to correspond to it. If not, is there another OSX/Linux/Unix tool that could do that?

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

This is Lightroom-specific metadata, stored in the Lightroom catalog. You can verify this like so:

$ exiftool -b -xmp mypic.dng > orig.xmp
(now go reject mypic.dng and Cmd/Ctrl-S if necessary)
$ exiftool -b -xmp mypic.dng > new.xmp
$ diff orig.xmp new.xmp

All you'll see are a metadata date change and some UUID changes. This means there is nothing there for exiftool to manipulate.

You'll have to do this in Lua, as a Lightroom plugin. Once you have the LrPhoto reference, you simply say:

photo:getRawMetadata('pickStatus')

to get the current value. It will be 1 if picked, 0 if neutral, and -1 if rejected.

You could then un-reject a photo with:

photo:setRawMetadata('pickStatus', 0)
share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.