全景相片 XMP
下表列出所有 必要的 Photo Sphere XMP 欄位。請選取下方連結,進一步瞭解 Photo Sphere XMP。如要新增自訂欄位,例如 GPano:PosePitchDegrees
,請縮短為 PosePitchDegrees
(不需要前置底線「_」)。
名稱 |
類型 |
說明 |
ProjectionType |
開啟文字選擇 |
圖片檔案投影類型。Google 產品目前支援等角格式。 |
UsePanoramaViewer |
布林值 |
在全景圖檢視器 (True ) 中顯示圖片,或以平面圖片形式顯示 (False )。預設為 True 。 |
PoseHeadingDegrees |
真的 |
圖片中心的指南針方向,以度為單位。值範圍介於 0 和 360 之間。 |
CroppedAreaImageWidthPixels |
整數 |
未經編輯圖片的原始寬度 (等於未經編輯圖片的實際圖片寬度),以像素為單位。 |
CroppedAreaImageHeightPixels |
整數 |
圖片的原始高度 (未經編輯的圖片為實際圖片高度),以像素為單位。 |
FullPanoWidthPixels |
整數 |
圖片裁剪前的原始全景寬度。或者,如果只擷取部分全景圖,則會指定全景圖的寬度。 |
FullPanoHeightPixels |
整數 |
圖片裁剪前的原始全景高度。或者,如果只擷取部分全景圖,則會指定完整全景圖的高度。 |
CroppedAreaLeftPixels |
整數 |
從全景圖裁剪的圖片左側邊緣所屬的欄。 |
CroppedAreaTopPixels |
整數 |
從全景圖裁剪圖片頂端邊緣的列。 |
除非另有註明,否則本頁面中的內容是採用創用 CC 姓名標示 4.0 授權,程式碼範例則為阿帕契 2.0 授權。詳情請參閱《Google Developers 網站政策》。Java 是 Oracle 和/或其關聯企業的註冊商標。
上次更新時間:2024-11-30 (世界標準時間)。
[null,null,["上次更新時間:2024-11-30 (世界標準時間)。"],[[["This page lists all the required fields for Photo Sphere XMP metadata, which is used by Google products to display spherical images correctly."],["Photo Sphere XMP metadata includes information about the image's projection type, orientation, and dimensions, as well as how it should be displayed."],["If adding custom fields to the XMP metadata, omit the \"GPano:\" prefix (e.g., use \"PosePitchDegrees\" instead of \"GPano:PosePitchDegrees\")."],["For detailed information about Photo Sphere XMP and its usage, refer to the provided link."]]],["Photo Sphere XMP requires specific fields for proper image handling. These include `ProjectionType` (typically equirectangular), `UsePanoramaViewer` (defaults to `True`), and `PoseHeadingDegrees` (compass heading). Dimensions are specified using `CroppedAreaImageWidthPixels`, `CroppedAreaImageHeightPixels`, `FullPanoWidthPixels`, and `FullPanoHeightPixels`. `CroppedAreaLeftPixels` and `CroppedAreaTopPixels` indicate the cropped image's position within the full panorama. Custom fields can be added without prefixing underscores.\n"]]