Join our unique resource for Olympus Four Thirds E-System DSLR and Pen and OM-D Micro Four Thirds photographers. Show your images via our free e-group photo gallery. Please read the e-group.uk.net forum terms and conditions before posting for the first time. Above all, welcome!
|
Home | Forum Index | FAQ | Olympus Hire | Gallery | Members List | Social Groups | Calendar | Search | Today's Posts | Mark Forums Read |
Tutorials, Informative & Classic threads A new e-Group area for all the wonderful tutorials and helpful threads put on here by our members. Tutorials on using software, camera hardware - and feel free to request a tutorial if you need assistance! |
![]() |
|
Thread Tools | Display Modes |
#1
|
||||
|
||||
How to search files for lens info?
Does anyone know a good way of searching photo files for what lens was used to take the image? I've been through several folders worth of files so fat pulling up exif info looking at fl to narrow it down but it's pretty tedious and not definitive. Is it possible to just search for the lens used? What I'm trying to do is to find the last time I used my 75-300 lens. Is there an easy way to search files & folders for that lens?
__________________
http://www.flickr.com/photos/flip_photo_flickr/ |
#2
|
|||
|
|||
Re: How to search files for lens info?
It could be done by 'bash' experts, using Unix/Linux command line utilities. Unfortunately I'm not an expert and would have to get up to speed with bash. The scheme would be to:
a) Search through the directories for JPEG files. b) Pass the file to the exif command line utility. c) Search in the exif output for the focal length. It would probably look like this sort of thing (which doesn't work as it stands!) for i in `find . -name '*.jp*g'`; do exif $i | grep 'Focal Length'; done Jim |
#3
|
||||
|
||||
Re: How to search files for lens info?
There are many applications you can use to search exif files for data, such as Irfanview. Or, you could simply use the metadata search filter within Lightroom, if you use that programme.
__________________
Stephen A camera takes a picture. A photographer makes a picture Fuji X system, + Leica and Bronica film My Flickr site |
#4
|
|||
|
|||
Re: How to search files for lens info?
Quote:
Jim |
#5
|
||||
|
||||
Re: How to search files for lens info?
I don't have such a product any more, but as I recall they can be used in batch mode.
__________________
Stephen A camera takes a picture. A photographer makes a picture Fuji X system, + Leica and Bronica film My Flickr site |
#6
|
||||
|
||||
Re: How to search files for lens info?
Lightrooms Metadata Browser will show the number of photos taken with each lens unless it's a legacy/third party lens.
__________________
It's the image that's important, not the tools used to make it. David M's Photoblog |
#7
|
||||
|
||||
Re: How to search files for lens info?
Quote:
![]()
__________________
Regards Paul. One day I hope to be the person my dogs think I am. https://www.flickr.com/photos/paul_silk/ |
#8
|
|||
|
|||
Re: How to search files for lens info?
I've got 'Faststone' which is pretty powerful, but don't use it much. I've just had a look and can't see what you suggest. It'll batch convert and rename, but you need to select the images first, rather than the program search for them as well. Just curious!
Jim |
#9
|
||||
|
||||
Re: How to search files for lens info?
PIE is a useful programme, if you're on Widows.
__________________
Stephen A camera takes a picture. A photographer makes a picture Fuji X system, + Leica and Bronica film My Flickr site |
#10
|
|||
|
|||
Re: How to search files for lens info?
Cracked it (sort of!):
for i in `find . -name '*.jpg'`; do echo $i; exif --no-fixup $i | grep 'Focal Length '; done > dummy.txt It's not pretty, but it works. It creates a file 'dummy.txt' in a few seconds, with entries of this sort on my machine: ./Jack_and_Carmels_40th/P5195171-1024px.jpg Focal Length |17.0 mm ./Jack_and_Carmels_40th/P5195174-800px.jpg Focal Length |21.0 mm ./Jack_and_Carmels_40th/P5195192-800px.jpg Focal Length |21.0 mm ./Jack_and_Carmels_40th/P5195208-800px.jpg Focal Length |39.0 mm ./Jack_and_Carmels_40th/P5195215-800px.jpg Focal Length |20.0 mm ./Jack_and_Carmels_40th/P5195212-800px.jpg Focal Length |35.0 mm ./Jack_and_Carmels_40th/P5195177-800px.jpg Focal Length |17.0 mm ./Jack_and_Carmels_40th/P5195216-800px.jpg Focal Length |29.0 mm ./Jack_and_Carmels_40th/P5195201-800px.jpg Focal Length |39.0 mm ./Jack_and_Carmels_40th/P5195179-800px.jpg Focal Length |19.0 mm ./Jack_and_Carmels_40th/P5195198-800px.jpg Focal Length |33.0 mm ./Jack_and_Carmels_40th/P5195169-1024px.jpg Focal Length |14.0 mm etc. As there were lots of JPEG files in the directory without EXIF data, there was lots of junk which I've stripped out. With a bit more fiddling about I expect 'sort' could be used to sort the output according to focal length. With 'Windoze' I expect you could use Cygwin to do it. Jim |
#11
|
||||
|
||||
Re: How to search files for lens info?
Very good, but not everyone wants to mess about with code when there are dozens of applications, many free, which can do this for you. But as a coder's exercise, very interesting as it shows that the exif contains a great deal of information which can be extracted if required.
__________________
Stephen A camera takes a picture. A photographer makes a picture Fuji X system, + Leica and Bronica film My Flickr site |
#12
|
|||
|
|||
Re: How to search files for lens info?
Quote:
Jim |
#13
|
||||
|
||||
Re: How to search files for lens info?
This is great support guys thanks. It's going to take me a while to get up to speed and understand what you are telling me though. If I have to go for coding then I'll need to enlist my son's help as that's way out of my league. A programme that can do it for me would be ideal. I'm surprised no one asked why I wanted to do this? Well basically it's because I seem to have lost my 75-300mm lens
![]() ![]() ![]()
__________________
http://www.flickr.com/photos/flip_photo_flickr/ |
#14
|
|||
|
|||
Re: How to search files for lens info?
The EXIF doesn't give the maximum focal length, only that at which it was used. This means that the EXIF might show 100mm, which could mean that the image was taken with a 75-300mm lens or a (say) 50-150mm one.
I hope you find the lens OK. Jim |
#15
|
||||
|
||||
Re: How to search files for lens info?
I use the windows GUI "exiftool" to look at the exif data in my jpgs/orfs. If you select a directory and then select all the files in that directory you can "export" the exif data for all the selected files to a text file (file has the same name as the image file but with .txt extension). You can then search the text file(s) using standard windows tools.
The advantage of this is that all the exif data is exported so its easy to search for a lens (eg: "75-300"). I know this isn't quite what was required as the brief called for a hierarchical directory search. However the GUI exiftool has a command line version and one of the options is: -r (-recurse) Recursively process subdirectories which seems to be just the thing you are looking for. I haven't used the command line version but offer it up as something to look into that may meet your needs. |
![]() |
Thread Tools | |
Display Modes | |
|
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
Apple Aperture / E-M1 RAW files: some files pink/purple after import | Angus | Olympus OM-D E-M1 | 0 | 20th December 2013 06:01 PM |
In search of the sun - Part 2 | Ann1e | Foto Fair | 6 | 10th July 2012 09:57 PM |
In Search of Autumnin Llanberis | Alan Clogwyn | Foto Fair | 14 | 26th October 2010 06:20 PM |
Stop and search | Ellie | The lounge | 49 | 5th November 2008 08:58 PM |
Useful lens info | Scapula Memory | Standard zoom and mid range | 4 | 13th February 2008 03:03 PM |