根據 URI 傳回檔案中繼資料。圖片標題 會列出 EXIF 和 XMP 欄位。這個指令已在 API 級別 2 中淘汰。
參數
- fileUri:目標檔案的 URI。製造商可自行決定 使用絕對或相對 URI用戶端可能會將此 ID 視為不透明 ID。
結果
- metadata:EXIF (包括 GPS 資訊)、Photo3 XMP 圖像 YAML 或 JSON 格式不含圖片或縮圖。
錯誤
- missingParameter:未指定
fileUri。 - INVALIDParameterName:無法辨識輸入參數名稱。
- invalidParameterValue::系統會辨識輸入參數,但其
的值無效;例如
fileUri不存在或其資料 類型不正確。
指令 I/O | |
|---|---|
| 指令輸入 | {
"parameters": {
"fileUri": "file URI"
}
} |
| 指令輸出 | {
"results": {
"exif": {
...
"ImageWidth": 2000,
"ImageLength": 1000,
...
},
"xmp": {
"ProjectionType": "equirectangular",
"UsePanoramaViewer": true,
...
}
}
} |
| 指令輸出 (錯誤) | {
"error": {
"code": "invalidParameterValue",
"message": "Parameter fileUri doesn't exist."
}
} |