Can I extract multiple EXIF tags in one go?
Posted: 2016-03-05T15:43:41-07:00
Hello,
I"m trying to build a catalogue of around 15,000 image files currently stored in a folder structure on a linux (Ubuntu) server.
The plan is to write a shell script that will loop through the folder structure and store the file name/path & selected EXIF information about each image in a SQL database (one record per image).
I was planning to use ... ... to extract the EXIF info.
However, I think I need to use this command separately for each piece of EXIF data that I'm interested in (e.g. created date, FNumber, ExposureTime, Make, Model, etc) and this repetition is making the script very slow.
Is there a way that I can extract list of EXIF tags in one go, i.e. calling identify just once per image? I see there's an option to print all the tags using %[EXIF:*], but I don't want all the tags, just a subset.
Any suggestions would be appreciated.
I"m trying to build a catalogue of around 15,000 image files currently stored in a folder structure on a linux (Ubuntu) server.
The plan is to write a shell script that will loop through the folder structure and store the file name/path & selected EXIF information about each image in a SQL database (one record per image).
I was planning to use ...
Code: Select all
identify -format %[EXIF:tagName] file.jpg
However, I think I need to use this command separately for each piece of EXIF data that I'm interested in (e.g. created date, FNumber, ExposureTime, Make, Model, etc) and this repetition is making the script very slow.
Is there a way that I can extract list of EXIF tags in one go, i.e. calling identify just once per image? I see there's an option to print all the tags using %[EXIF:*], but I don't want all the tags, just a subset.
Any suggestions would be appreciated.