概要
Returns an image file’s Exchangeable image file format (EXIF) metadata, including XMP format.
ディスカッション
An image file can contain any number of EXIF properties. This method returned a selected set of EXIF properties stored under the EXIF tag. It also returns additional properties stored in XMP (Extensible Metadata Platform) format if available in the image file.
構文
GetImageEXIFProperties (geotagged_image)
パラメーター | 説明 | データ タイプ |
geotagged_image | The image file path that contains geotagged EXIF properties. (デフォルト値は次のとおりです None) | String |
データ タイプ | 説明 |
List | The output metadata. Longitude and latitude will be in decimal degrees, and altitude will be in the unit defined in the image EXIF. Longitude, latitude, and elevation will be returned in the first three index positions of the list. EXIF properties will be returned in the next position as a dictionary, using the following EXIF tags as keys.
The EXIF properties are returned in XMP format. If no valid EXIF properties information is found, the function returns None. Return EXIF properties from JPEG image.
|
コードのサンプル
Return EXIF properties from a JPEG image.
import arcpy
# Get exif metadata in JSON format from image
arcpy.GetImageEXIFProperties(r"c:/droneimages/Picture044.jpg")