Filter by Which Images Can Be Lens Corrected?

  • 1
  • Question
  • Updated 3 months ago
I have 60,000+ RAW images that I need to filter according to which have lens data and which don't. I consolidated all my RAW images into one library, which also includes duplicate photos that have been stripped of some metadata (these are the ones I need to delete).

I've been going through and manually enabling lens corrections to each image and keeping the ones that are correctable. The ones that aren't affected by the correction are deleted (these also have less vivid colors). I'm guessing these duplicates are compressed RAW images that I pulled down from Google Photos.

Was hoping someone might be able to suggest a much faster, easier method.
Photo of Tim Sondrup

Tim Sondrup

  • 88 Posts
  • 7 Reply Likes

Posted 3 months ago

  • 1
Photo of avpman

avpman

  • 162 Posts
  • 113 Reply Likes
Take a look at the Search function of the Any Filter plugin. There is a filter under develop settings related to lens profile as well as a plethora of other criteria for search filtering. Hope this helps. (Sample filter below may not be the one you need, check the others).

http://www.johnrellis.com/lightroom/anyfilter.htm


(Edited)
Photo of John R. Ellis

John R. Ellis, Champion

  • 5113 Posts
  • 1447 Reply Likes
It's not clear from your description what lens data may be missing. Upload a sample photo that's missing the data and a similar one that isn't to Dropox or similar and post the sharing links here (be sure to include any .xmp sidecars).  Then we can quickly figure out how to identify them, either with LR's built-in filtering or with Any Filter if necessary.
Photo of John R. Ellis

John R. Ellis, Champion

  • 5113 Posts
  • 1447 Reply Likes
Those two images are JPEGs, not raws?  

One has the EXIF lens field and the other doesn't. If the rest of your photos are like that, you can easily filter ones with unknown lens using the Library Filter bar's Metadata browser. Do the menu command View > Show Filter Bar, click Metadata, set the first column to be Lens, and click Unknown Lens:


A shortcut for doing that is to select one of the correctable photos in Library grid view. Then in the Metadata panel on the right, click the arrow to the right of Lens:


But beware that most lens profiles work with raw only. The sample photo used the lens EF35mm f/1.4L USM, and there is no JPEG profile for that lens.


Photo of Tim Sondrup

Tim Sondrup

  • 88 Posts
  • 7 Reply Likes
Sorry about that. Here are the RAW files. The others must have been converted during export.

Non-Lens Correctable: https://www.icloud.com/iclouddrive/0t-60VXPKvOI_Wrv2N7k2FGnQ#Non-Lens_Correctable

Lens Correctable: https://www.icloud.com/iclouddrive/0NmcbhpxQv8-LJOOoAI4Mkp8A#Lens_Correctable

Photo of John R. Ellis

John R. Ellis, Champion

  • 5113 Posts
  • 1447 Reply Likes
Interesting. The file "Non-Lens Correctable.cr2" is actually a JPEG, not a raw.   You can see this by using the File Type column of the Metadata browser:


Exiftool confirms this:
$ exiftool -mimetype *.cr2
======== Lens Correctable.cr2
MIME Type                       : image/x-canon-cr2
======== Non-Lens Correctable.cr2
MIME Type                       : image/jpeg
So you can distinguish the "correctable" and "non-correctable" files two ways using the Metadata browser: With the File Type column and the Lens column.
Photo of Tim Sondrup

Tim Sondrup

  • 88 Posts
  • 7 Reply Likes
Well, that's helpful. It doesn't look like I can apply either of those filters in the mobile or desktop apps. Looks like I'll have to download all my images, import them into Lightroom Classic, then filter and delete?
Photo of John R. Ellis

John R. Ellis, Champion

  • 5113 Posts
  • 1447 Reply Likes
Maybe someone else can answer that -- I'm only passingly familiar with LR Cloudy.