xmp

XMP中繼資料。 傳回與要求路徑中所指定影像相關聯的XMP中繼資料。

req=xmp

其他指令會被忽略。 UTF-8編碼適用。 回應會格式化為具有MIME型別的XML text/xml.

HTTP回應可使用以下依據的TTL快取: catalog::Expiration.

屬性

要求屬性。 無論目前的圖層設定為何,均適用。

預設

如果URL不包含影像路徑或修飾元,則:

#S7Z OK
#Mon Jul 25 17:28:32 PDT 2014
copyright=Copyright (c) 1995-2014 Adobe Systems Incorporated. All rights reserved.

否則, req=img

範例

查詢影像檔案屬性。

http:// *伺服器*/myPath/myImage.tif?req=imageprops

查詢影像目錄屬性:

http:// *伺服器*/myRootId?req=catalogprops

從內嵌於HTML檔案中的使用者端JavaScript存取影像目錄專案的屬性:

<script language="JavaScript">
     //req=imageprops populates this object with properties:
     var image = new Object;
</script>
<script src="http://server/myRootId/myImageId?req=imageprops,javascript"></script>
<script>
     alert("Image Size: " + image.width + " x " + image.height);
</script>

擷取特定目錄專案的遮色片影像,縮放為原始大小的25%:

http:// *伺服器*/myRootId/myImageId?req=mask&scale=0.25

請求八分之一大小的影像:

http:// *伺服器*/myRootId/myImageId?scl=8

這與:

http:// *伺服器*/myRootId/myImageId?req=img&scl=8

根據影像目錄中指定的縮圖屬性,請求影像的縮圖:

http:// *伺服器*/myRootId/myImageId?req=tmb&wid=64&hei=64

傳送文字訊息至伺服器記錄檔:

http:// *伺服器*/myRootId?req=message&message=This%20is%20the%20message

另請參閱

fmt=catalog::目標catalog::UserData縮圖縮放屬性影像地圖

本頁內容