A700 Lens ID is in RAW --- How to Extract with CS3?

Specifically for the discussion of the A-mount DSLR range
Forum rules
No more than three images or three external links allowed in any post or reply. Please trim quotations and do not include images in quotes unless essential.
BertIverson
Acolyte
Posts: 5
Joined: Thu Oct 15, 2009 1:50 am

A700 Lens ID is in RAW --- How to Extract with CS3?

Unread post by BertIverson »

RawTherapee shows the lens ID embedded in Sony RAW -- so I know it is there. Can anyone help me get this lens ID using ACR / CS3? It does not seem to be in the EXIF string from which I have successfully extracted ISO, FL and f-stop using a JavaScript. I am writing a CS3 JavaScript and need the lens ID.
Thanks
Bert
David Kilpatrick
Site Admin
Posts: 5985
Joined: Sat May 19, 2007 1:14 pm
Location: Kelso, Scotland
Contact:

Re: A700 Lens ID is in RAW --- How to Extract with CS3?

Unread post by David Kilpatrick »

It is probably present in a section of metadata (file header information) known as MakerNote, not EXIF. CS3 can't see MakerNote data as far as I know. Accessing it would be something only an expert programmer could help you with.

David
User avatar
Winston
Grand Caliph
Posts: 467
Joined: Fri Jul 18, 2008 5:29 pm

Re: A700 Lens ID is in RAW --- How to Extract with CS3?

Unread post by Winston »

Lightromm 2.5 is the first version that can extract the lens info from the maker notes. Lightroom 2.5 uses ACR 5.5 which I think requires either LR 2.5 or CS4 to use it.
Winston Mitchell
KM7D, A700, A77, A77M2, A7M3
BertIverson
Acolyte
Posts: 5
Joined: Thu Oct 15, 2009 1:50 am

Re: A700 Lens ID is in RAW --- How to Extract with CS3?

Unread post by BertIverson »

Thanks guys. I will give up on CS3 and pursue other approaches.
Bert
01af
Imperial Ambassador
Posts: 501
Joined: Sun May 20, 2007 2:44 pm
Location: Germany

Re: A700 Lens ID is in RAW --- How to Extract with CS3?

Unread post by 01af »

Bert,

you can use Javascript to issue a call to ExifTool which excerpts the Lens ID (and Teleconverter ID and many more Minolta/Sony Maker Note entries) from the image's metadata and writes it into a disk file, then use more Javascript code to open and to read that file. That's what I do to transfer the lens info into the XMP tags aux:Lens and aux:LensInfo via a Bridge script.

You can download ExifTool from Phil Harvey's webpage. Use the Windows executable (or the Mac executable if you're on a Mac). In order to process many image files with one single call to ExifTool, build an argument file in Javascript, write it to disk, and call

Code: Select all

app.system("exiftool -@ " + strArgumentFileName);
(with strArgumentFileName being a string variable containing the path and name of your argument file). If you're familiar with Perl scripts (I'm not) then it's even easier because at the core, ExifTool is nothing but a collection of Perl scripts. The Windows and Mac executables however do not rely on a Perl interpreter; they are stand-alone programs.

For details about using ExifTool and the format of the argument file see ExifTool's documentation. Of course, you may just as well call ExifTool on each single image file, like this:

Code: Select all

exiftool -n -s -s -s -MakerNote:LensType -MakerNotes:Teleconverter <yourimage.jpg>
but with many images that's inefficient. (Here, the -n option returns the numerical values of the IDs; without that option ExifTool would translate these into human-readable strings automatically.) By the way, a nice graphical user Interface to ExifTool is ExifToolGUI for Windows. It helps exploring the capabilities of ExifTool as well as what's hiding inside the MakerNotes section of your image files.

Using ExifTool has a bit of a learning curve but it's worth it. Calling ExifTool from Javascript is an extremely powerful method to handle and to process metadata, including brand-specific Maker Notes. It has solved many metadata headaches for me.

-- Olaf
BertIverson
Acolyte
Posts: 5
Joined: Thu Oct 15, 2009 1:50 am

Thanks Olaf --- A700 Lens ID is in RAW

Unread post by BertIverson »

Great help. Thanks very much. Last night I googled "Makernotes" and discovered ExifTool and was thinking along the lines you suggested. I dragged and dropped a couple of Sony RAW files onto ExifTool and was impressed with the amount of data present in the RAW file (including the Lens number/description) Your specific help has encouraged me and I will pursue this approach. I will post my failure or success. Thanks again,
Bert
Post Reply

Who is online

Users browsing this forum: No registered users and 10 guests