Populating the image headers: Credit, contact information, copyright, usage terms, image descriptions, attribution url, metadata link, and georeferencing information were added to the exchangeable image file format (EXIF) header of each image using Phil Harvey’s ExifTool (version 12.44). Each coral species (APAL for Acropora palmata and PSTR for Pseudodiploria strigosa) and sample site (SFR, NER, NWR) were grouped together and the command was run on each group of images. The image groupings were as follows: APAL SFR, PSTR SFR, APAL NER, PSTR NER, APAL NWR, and PSTR NWR. All information in the script were the same among all images, aside from the EXIF:ImageDescription, EXIF:GPSLatitude and EXIF:GPSLongtitude information, as that information varied between the grouped site and coral species images.
First, the following command was run on the grouped images to preserve filenames:
exiftool -P "-XMP:PreservedFileName<Filename" *.JPG.
Second, the following command was run on the grouped images to populate the image headers. This example command was run on the APAL SFR images:
exiftool -IPTC:Credit="U.S. Geological Survey" -IPTC:Contact="
[email protected]" -EXIF:Copyright="Public Domain" -XMP:UsageTerms="Unless otherwise stated, all data, metadata and related materials are considered to satisfy the quality standards relative to the purpose for which the data were collected. Although these data and associated metadata have been reviewed for accuracy and completeness and approved for release by the U.S. Geological Survey (USGS), no warranty expressed or implied is made regarding the display or utility of the data for other purposes, nor on all computer systems, nor shall the act of distribution constitute any such warranty." -EXIF:ImageDescription="Time-series photographs taken of colonies of the elkhorn coral, Acropora palmata, grown at south forereef at Buck Island Reef National Monument from June 2019 to July 2021." -XMP:AttributionURL="
https://doi.org/10.5066/P94BOI9T" -EXIF:GPSAreaInformation="Location of collection site, GPS coordinates are approximate" -XMP:ExternalMetadataLink="
https://data.usgs.gov/datacatalog/metadata/USGS.d5b888e0-7781-44a0-8802-48c240a5cc00.xml" -EXIF:GPSLatitude="17.78408" -EXIF:GPSLatitudeRef="N" -EXIF:GPSLongitude="64.61416" -EXIF:GPSLongitudeRef="W" *.JPG
To extract the information from the image headers using ExifTool, run the following command after connecting to the unzipped folder containing the images (VI_coral_photo_record):
exiftool a.jpg, where 'a' is replaced with the filename. Example: exiftool APAL_NER_113_SideView.jpg