Aspose.Imaging Cloud
[Aspose.Imaging Cloud][1] platform independent image manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, jQuery and many more. You can use it with any platform — web, desktop, mobile, and 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.
What’s new in the latest release
This is a major revamp release for [Aspose.Imaging Cloud SDK for Java][2]. This SDK is built on top of Cloud API and provides a complete solution to work with cloud images in Java. Get the capabilities to manipulate & convert images in the cloud seamlessly.
The Complete source code of this Java Cloud SDK is freely available on [GitHub repository][3].
- Aspose.Imaging Cloud SDK for Java - v1.0.0
Setup Aspose.Imaging Cloud SDK for Java is also available as released artifacts in the [Aspose Maven Repository][4]. You can bypass GitHub source code repository and depend directly on the released artifacts from Aspose Maven Repository by adding the following repository and dependency to development environments like Eclipse or Apache Maven:
Aspose Maven Repository
<repositories>
<repository>
<id>aspose-maven-repository</id>
<name>Aspose Maven Repository</name>
<url>https://repository.aspose.cloud/repo/</url>
</repository>
</repositories>
Maven Dependency
<dependency>
<groupId>com.aspose</groupId>
<artifactId>aspose-imaging-cloud</artifactId>
<version>1.0.0</version>
</dependency>
``
`Get Sources and Javadocs
**Maven**
$ mvn dependency:sources $ mvn dependency:resolve -Dclassifier=javadoc
**Eclipse IDE**
$ mvn eclipse:eclipse -DdownloadSources=true $ mvn eclipse:eclipse -DdownloadSources=true -DdownloadJavadocs=false
**pom.xml**
//Instantiate Aspose Storage Cloud API SDK StorageApi storageApi = new StorageApi(apiKey, appSID,true);
//Instantiate Aspose Imaging Cloud API SDK ImagingApi imagingApi = new ImagingApi(apiKey, appSID,true);
//set input file name String fileName = “sample.bmp”; Integer bitsPerPixel = 24; Integer horizontalResolution = 300; Integer verticalResolution = 300; Boolean fromScratch = false; String outPath = “”; String folder = “”; String storage = “”;
//upload files to aspose cloud storage storageApi.PutCreate(fileName, “”, storage, new File(this.getClass().getResource("/" + fileName).toURI()));
//invoke Aspose.Imaging Cloud SDK API to update BMP specific properties
ResponseMessage apiResponse = imagingApi.GetImageBmp(fileName, bitsPerPixel, horizontalResolution, verticalResolution, fromScratch, outPath, folder, storage);
if(apiResponse!=null && apiResponse.getStatus().equals(“OK”)){
//download updated image from api response
InputStream responseStream = apiResponse.getInputStream();
final Path destination = Paths.get(“c:\temp" + fileName);
Files.copy(responseStream, destination, StandardCopyOption.REPLACE_EXISTING);
}
}catch(Exception e){
e.printStackTrace();
}
The [product documentation][5] is available to guide developers to get familiar with the specific resources and operations within the Aspose.Imaging Cloud REST API. Aspose.Imaging Cloud SDK for Java Examples are also available to guide developers to get familiar with SDK and its usage to invoke resources and operations using the Aspose.Imaging Cloud REST API.
Please see the SDK examples of following categories:
* [Working with Image Properties][6]
* [Manipulating Images][7]
* [Working with TIFF Frames][8]
## Start a Free Trial Today
Start a free trial today – all you need is to [sign up][9] with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud. In case you encounter any issue while using our APIs, please feel free to contact via [product support forum][10].
[1]: https://products.aspose.cloud/imaging/curl/
[2]: https://products.aspose.cloud/imaging/java/
[3]: https://github.com/aspose-imaging-cloud/aspose-imaging-cloud-java
[4]: https://releases.aspose.cloud/java/repo/com/aspose/aspose-imaging-cloud/
[5]: https://docs.aspose.cloud/imaging/
[6]: https://docs.aspose.cloud/imaging/working-with-image-properties/
[7]: https://docs.aspose.cloud/imaging/manipulating-images/
[8]: https://docs.aspose.cloud/imaging/working-with-tiff-frames/
[9]: https://dashboard.aspose.cloud/
[10]: https://forum.aspose.cloud/c/imaging/10