Image, metadata, DAM – Getting metada from pictures
Since 6 months I am working on a new project: launching a new back office that should replace the previous one based on Drupal.
The project was almost a wreck as we try to reproduce, a on a Symfony based application, what was previously existing even even features endorsing the worst habits!
The main and unacknowledged objective was to copy the existing and previous tool and to focus on features that can be new and interesting.
Like I usually say with a shrug: “Anyway…” to encourage my mind to move on and not to get stuck on what should have been done!
So anyway, as somebody say “regret is a second mistake”.
It was the occasion like always to discover again some elements both technical and editorial. As you may know, using a picture without credits is illegal when you are using a picture to illustrate a post, you need at minimum to declare the copyright and to ensure that you have the right to usage this image.
Long time ago, I did a post about this subject. The concern is still the same, how can you leverage on EXIF metadata from pictures and populate the data inside a CMS for credits, description and title.
At the time, I was using Photoshop and use WordPress to grab the data. This time I have been looking for open source tools to make.
Here is 2 of the tools that have bee using :
- exiftool is a command line tool that allows you to change and manipulate the EXIF metadata of images.
- detox is a utility designed to clean up filenames. It replaces difficult to work with characters, such as spaces, with standard equivalents. It will also clean up filenames with UTF-8 or Latin-1 (or CP-1252) characters in them (i.e: foo bar – quz.avi -> foo_bar-quz.avi).
#install tools with homebrew brew install exiftool brew install detox #renaming files inside a directory named photos detox -r -v photos/ |
#go to path cd /your-path-to-the-images/_values_images/ #check infos exiftool -a -u -g1 000_1G87QJ_v1.jpg |
The metadata output in the console
#check infos exiftool -T -createdate -aperture -shutterspeed -iso DIR > out.txt #check infos and output in a text file named out.txt exiftool -a -u -g1 000_1G87QJ_v1.jpg > out.txt |
Source: https://arslan.io/2018/04/18/tips-tricks-to-batch-edit-exif-metadata-of-photos/
Conclusion: Indeed, it is a very good habit to grab EXIF from pictures. All these EXIF stuff is part of a true DAM (Digital Assets Management). It is worth working around that question, especially if you are using images from Reuters, AFP, Getty or any photographic fund or archive. If done well, leveraging on EXIF will save much more time later when it is time to look for content inside your CMS. This is critical for a useful DAM.
Read more
- Good article from Fatih Arslan “Tips & tricks to batch edit EXIF metadata of photos”
https://arslan.io/2018/04/18/tips-tricks-to-batch-edit-exif-metadata-of-photos/ - List of Top Photo Metadata Editors
https://www.linuxlinks.com/photometadataeditors/ - How to edit metadata via the command line with ExifTool
https://libre-software.net/edit-metadata-exiftool/ - My previous post in french “Image, Metadonnées, Metadata – Editer, supprimer, mettre à jour des metadata sur des fichiers de photo”
https://flaven.fr/2010/02/image-metadonnees-metadata-editer-supprimer-mettre-a-jour-des-metadata-sur-des-fichiers-de-photo/