Grab metadata from images and save to file, batch mode

Vincent Vande Vyvre vincent.vande.vyvre at telenet.be
Sat Apr 2 05:14:41 EDT 2016


Le 01/04/2016 23:20, accessnewbie at gmail.com a écrit :
> 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
> .&checktime(2014,11,10,':') 13:52:12; BillyBob111; Brother.jpg; C:\Images\Family\Brother.jpg
> .&checktime(2015,10,54,':') 11:45:34; BillyBob111; Sister.jpg; C:\Images\Family\Sister.jpg
> .&checktime(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

Have a look at py3exiv2:
http://python3-exiv2.readthedocs.org/en/latest/
Vincent


More information about the Python-list mailing list

AltStyle によって変換されたページ (->オリジナル) /