As you probably know photos taken with phones and many digital cameras have GPS data embedded into the image file… And that Smart Mover’s "Extract Image MetaData" Task makes it easy to turn that data into a Google Maps hyperlink and include it as part of a caption or any other related element of an Image and Article. So your Articles will not only include a photo but the location where it was taken.
There are numerous ways to start this Mover Process… depending on the source of the Image. You could use Mover’s FTP Get, Get Mail or several other Tasks to obtain the image file. For this discussion we will assume that you already have the image in the Mover Base Path.
There is just 2 Tasks required:
Task 1: Extract Image MetaData. Set your Source Folder to the location of the Image files. In my case that was “NewFiles”. Leave the “Add to Name” blank and pick a system encoding… probably UTF-8 or system default.
This Task will then go through all the files in the “NewFiles” folder looking for Image Metadata. When it finds some it will create a sibling file with the same name but with a xml extension. That file will contain all the metadata Mover could find in the Image. Refer to Appendix J of the Smart Mover User Guide for information on the format of that file. Keep in mind that you may have photos that have metadata but no GPS data.
Task 2: Enterprise XML Upload: Set the Source Folder to the same “NewFiles” used in Task 1 and the XSL file to this “GPSTextLink.xsl”. Log into Enterprise and set the rest of the desired options. You must set at least 1 Category Mapping. Delete the original and dependents so that they do not upload again in the future.
With this Task, Mover will upload the Image file and will include a Google Maps hyperlink into 4 Enterprise metadata fields: SlugLine, Credit, Comment and Description. You will probably not want all 4 and instead use some of those fields for other purposes. To do that simply edit the xsl file and remove the references... they will be easy to spot. You will also want to edit the xsl variable called “category” in conjunction with the Category Mapping in the Task setup.
So now you will find each image in Enterprise along with the metadata based hyperlink. You can then copy and paste from that field into the Article editor.
My Process folder looks like:
Please sign in to leave a comment.