Grab metadata from images and save to file, batch mode

Dale Marvin dmarv at dop.com
Fri Apr 1 19:33:12 EDT 2016


On 4/1/16 2:20 PM, accessnewbie at gmail.com wrote:
> I have a directory (and sub-directories) full of images that I want to cycle through and grab certain metadata values and save those values to a single row in a cvs file. I would like to tack on the full path name to the row as a separate value.
>
> Folder
> C:\Images\Family
> Brother.jpg
> Sister.jpg
> Mom.jpg
>
> Keys/Values
> Original Date/Time
> User Name
> File Name
>
> Thus, data might look like this in a Family.csv file
> 2014:11:10 13:52:12; BillyBob111; Brother.jpg; C:\Images\Family\Brother.jpg
> 2015:10:54 11:45:34; BillyBob111; Sister.jpg; C:\Images\Family\Sister.jpg
> 2010:10:31 19:22:11; SallySue232; Mom.jpg; C:\Images\Family\Mom.jpg
>
> Big time noob. Much of what I have read cites command line examples dealing with single files and no info as to how to extract specific keys and their values.
> What module would some of you users recommend I use (I want it to be python as that is what I am trying to learn)
>
> Can you give me some coding suggestions to get me goings? I haven't found any substantive scripts to use as guides.
>
> Many thanks in advance
>

Hi accessnewbie,

I do a fair amount of media processing and automation with python.
Look at exiftool <http://www.sno.phy.queensu.ca/~phil/exiftool/>
There are python bindings as well <http://smarnach.github.io/pyexiftool/>.

Dale



More information about the Python-list mailing list