Tagged Image File Format, abbreviated TIFF or TIF, is a computer file format for storing raster graphics images, popular among graphic artists, the publishing industry, and photographers.
Sometimes, there is a need to update parameters of existing TIFF image. For instance, you may want to update bit depth of an image, change the compression of an image or set horizontal/vertical resolution of a TIFF image. Aspose.Imaging Cloud provides an API to perform these operations. A cURL Example would help you better to understand the API parameters:
// 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
Since it is a REST API, you can call it with any programming language.
Other possible manipulations of TIFF image could be following:
- Update parameters of existing TIFF image accordingly to fax parameters
- Appends existing TIFF image to another existing TIFF image (i.e. merges TIFF images).
- Get separate frame from existing TIFF image.
- Get separate frame properties of existing TIFF image.
Aspose provides Cloud SDKs to make it easy to call these APIs.