Extracting metadata from images
Extracting metadata from images, when they are uploaded, is very easy. Extension cc_metaexif
in combination with DAM handles all the work for you.
How to do it...
1. Install
cc_metaexif
. Extensioncc_metaexif
is a service extension that is executed when new files are uploaded. It parses the metadata stored in the EXIF and IPTC sections of the image file, and stores this data in the DAM record associated with the image file.2. To test how the extension is working, upload an image with modified metadata. You should see the metadata used in DAM fields, such as Title, Description, and Copyright owner.
Note
If you click on the Extra data tab, you will get access to raw data as it was imported from the file. Most of it probably didn't match any of the DAM fields, so remained unparsed. You can still make use of it by writing custom extensions that can manipulate this data and make use of it for your particular purpose. We will cover this later on in the book.