The DAM Forum
Welcome, Guest. Please login or register.
May 22, 2013, 09:35:53 PM

Login with username, password and session length
Search:     Advanced search
Jan 9, 2012
John Beardsworth's new Lightroom site
Lightroom Solutions
27960 Posts in 5113 Topics by 2914 Members
Latest Member: imthedamstar
* Home Help Search Login Register
+  The DAM Forum
|-+  Software Discussions
| |-+  ImageIngester and ImageVerifier
| | |-+  Camera Model in File Name
« previous next »
Pages: [1] Print
Author Topic: Camera Model in File Name  (Read 2309 times)
Langsey
Newbie
*
Posts: 12


View Profile
« on: July 05, 2009, 12:43:47 PM »

Recently I purchased another camera. Is there a script that can be used in ImageIngester to place the camera model in the file name? Downloader Pro can do this. ie: JFL090615-5D-0000. I can use this for an easy ID of which camera shot the photo without looking in the metadata.

John
Logged
peterkrogh
Administrator
Hero Member
*****
Posts: 5682


View Profile
« Reply #1 on: July 06, 2009, 06:21:01 AM »

John,
If you open the Examine item in the IIP Tools menu, and navigate to a file from the camera, you'll see all the metadata that IIP can parse out of the file. (Actually, it's all the metadata that EXIFtool can find in the file.)  If you see your camera model in that data, you should be able to make a macro that places that data into the file name. (Check Macro Lab for more information on the proper syntax.)

You might also be able to pick it up from the folder name on the card, depending on how your camera writes the folders. (You also might be able to put it in the original name string for the in-camera naming and pick it up from that, depending on the name capabilities of your camera).
Peter
Logged
Marc Rochkind
Hero Member
*****
Posts: 1136


View Profile WWW
« Reply #2 on: July 06, 2009, 08:36:06 PM »

What Peter said... ;-)

--Marc
Logged

ccclapp
Newbie
*
Posts: 6


View Profile
« Reply #3 on: July 27, 2009, 10:19:01 AM »

I would like to add to this question:

I understand how to get model name using exif.Model.  I use {@exif.Model,-2} to get only the last two letters of the name for my Cannon 5D and G9.  However, the last two letter designation does not work well for models with more than three letters identifying model # (such as G10 and (Fuji) X30, etc, etc).  One noce feature in Downloader pro is the ability to script the "last word" of the model name. This picks up 5D, G9, G10, X30, etc, etc.  Since I use model name in my file naming macro, I dont just want to expand the # of characters or use the whole model name (Cannon Powershop G10).

Is there a way to script using "last word", "first Word" etc w II?  If not, this would be very useful in this and other scripts.

Thanks

--Caleb
Logged
peterkrogh
Administrator
Hero Member
*****
Posts: 5682


View Profile
« Reply #4 on: July 27, 2009, 11:42:42 AM »

Caleb,
I have not tried, but I don't think so.
Peter
Logged
Marc Rochkind
Hero Member
*****
Posts: 1136


View Profile WWW
« Reply #5 on: July 27, 2009, 09:22:36 PM »

Caleb--

Unfortunately, no way to get at words, but your suggestion is one I've received a few times before, and it's on my list.

--Marc
Logged

Timm
Newbie
*
Posts: 1


View Profile
« Reply #6 on: February 10, 2010, 02:24:56 PM »

Using ExifTool with custom config it is possible to strip the 'Model' tag down to the last word:- i.e. 'Canon EOS 20D' returns '20D'.

I use this with MetaDataMover to do initial copy from card to disk in an Apple Automater action.

Is there any way to access the custom ExifTool filed in II as the hard work's already done in the ExifTool config file?

~/.ExifTool_config entry:

Code:
%Image::ExifTool::UserDefined = (
    'Image::ExifTool::Composite' => {
        MyCam => {
            Require => {
                0 => 'Model',
            },
            # select the last word of the model name
            ValueConv => 'my $name=$val[0]; $name=~s/.*\W(\w)/$1/; $name',
        },
    },
);


Command line use and return:
Code:
:~ mxt$ exiftool -MyCam Desktop/Sample/_MG_0025.cr2
My Cam                          : 20D


Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!