Aspose.Imaging Cloud
Aspose.Imaging Cloud lets you use a REST API to inspect, convert, and transform images in the cloud. It supports the most popular image formats such as PSD, PNG, GIF, BMP, TIFF, and JPEG, and conversion between them. Aspose.Imaging Cloud also provides a rich set of features for manipulating images on-the-fly with cloud based image transformations. You can resize, crop and/or rotate images various ways by simply creating a request that includes the correct transformation instructions. The most demanding imaging routines, for example TIFF concatenation and image conversion to fax compatible format, are available through efficient and reliable specialized resources. You can perform these operations without needing to know what’s going on under the hood so that you can focus on the core business goals.
Adding Aspose.Imaging Cloud to your project
• CocoapodsCocoaPods is the recommended way to add AsposeImagingCloud to your project.
- Add a pod entry for AsposeImagingCloud to your Podfile
pod 'AsposeImagingCloud'
- Install the pod(s) by running
pod install
- Include AsposeImagingCloud wherever you need it with
#import "ASPImagingApi.h"
• Source filesAlternatively you can directly add source files to your project.
- Download the latest code version from GitHub or CodePlex repository.
- Open your project in Xcode, then drag and drop imaging folder onto your project (use the “Product Navigator view”). Make sure to select Copy items when asked if you extracted the code archive outside of your project.
- Include AsposeImagingCloud wherever you need it with
#import "ASPImagingApi.h"
UsageAn example is given below to give you a quick preview of how APIs of this SDK can be called.
/*Update parameters of JPG image.*/
#import "ASPApiClient.h"
#import "ASPImagingApi.h"
//Get App key and App SID from https://cloud.aspose.com
[ASPApiClient setAppKey:@"" andAppSID:@""];
ASPImagingApi *imagingApi = [[ASPImagingApi alloc] init];
NSURL *pathToFile = [[NSBundle mainBundle] URLForResource:@"aspose" withExtension:@"jpg"];
[imagingApi postImageJpgWithCompletionBlock:pathToFile
quality:[NSNumber numberWithInt:100]
compressionType:@"progressive"
fromScratch:nil
outPath:nil
completionHandler:^(NSURL *output, NSError *error) {
BOOL isFileExist = [[NSFileManager defaultManager] fileExistsAtPath:[output path]];
XCTAssertTrue(isFileExist, @"Failed to update parameters of jpg image.");
}];