标记图像文件格式,缩写为 TIFF 或 TIF,是一种用于存储光栅图形图像的计算机文件格式,在图形艺术家、出版业和摄影师中很流行。

有时,需要更新现有 TIFF 图像的参数。例如,您可能想要更新图像的 位深度、更改图像的压缩或设置 TIFF 图像的水平/垂直分辨率。Aspose.Imaging Cloud 提供了一个 API 来执行这些操作。cURL 示例可以帮助您更好地理解 API 参数:

// First get JSON Web Token
// Please get your App Key and App SID from https://dashboard.aspose.cloud/#/apps. Kindly place App Key in "client_secret" and App SID in "client_id" argument.
curl -v "https://api.aspose.cloud/connect/token" \
-X POST \
-d "grant_type=client_credentials&client_id=xxxx&client_secret=xxxx" \
-H "Content-Type: application/x-www-form-urlencoded" \
-H "Accept: application/json"
 
// cURL example to update parameters of existing TIFF image
curl -v "https://api.aspose.cloud/v3/imaging/tiff?compression=adobedeflate&resolutionUnit=inch&bitDepth=1&horizontalResolution=150&verticalResolution=150" \
-X POST \
-T SampleTiff.tiff \
-H "Content-Type: application/json" \
-H "Accept: multipart/form-data" \
-H "Authorization: Bearer <jwt token>" \
-o sample_out.tiff

由于它是一个 REST API,因此您可以使用任何编程语言调用它。

TIFF 图像的其他可能的操作如下:

Aspose 提供 Cloud SDKs 以便轻松调用这些 API。