<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-imaging-cloud</artifactId>
    <version>20.7</version>
</dependency>
copied!  
compile(group: 'com.aspose', name: 'aspose-imaging-cloud', version: '20.7')
copied!  
<dependency org="com.aspose" name="aspose-imaging-cloud" rev="20.7">
    <artifact name="aspose-imaging-cloud" ext="jar"/>
</dependency>
copied!  
libraryDependencies += "com.aspose" % "aspose-imaging-cloud" % "20.7"
copied!  

Image Processing in Cloud via Java REST API

banner

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

Aspose.Imaging Cloud SDK for Java helps you work with image file formats within your cloud-based Java Apps, without installing any 3rd party software. It is a wrapper around Aspose.Imaging Cloud REST APIs.

Image Cloud Processing Features

  • Fetch or update properties of cloud-hosted images.
  • Work with BMP, GIF, TIFF, JPG, PSD, JPEG2000, WebP, EMF, & WMF image properties.
  • Resize, crop, rotate, flip, append, & deskew images.
  • Convert images from one format to another.
  • Update TIFF image parameters as per Fax parameters.
  • Fetch frame range from multipage images.
  • Apply any of various availabile image filters.
  • Turn all colors of an image to shades of gray to make a grayscale image
  • Ability to load custom fonts for vector images.
  • Avaibility on Docker Hub.
  • Supports Single Shot Detector (SSD) method to recognize objects within images (BMP, JPEG, & JPEG2000).-

Image AI Features in the Cloud

  • Content-based image search
  • Search for duplicate images
  • Image search by custom registered tags
  • Ability to compare images and detect similarity
  • Supports reverse image search with parallel processing
  • AKAZE detector is supported for image feature extraction

Image Cloud Storage Features

  • Upload, download, copy, move and delete files, including versions handling (if you are using Cloud storage that supports this feature - true by default)
  • Create, copy, move and delete folders
  • Copy and move files and folders accross separate storages in scope of a single operation
  • Check if certain file, folder or storage exists

Suported File Formats

Vector: SVG, SVGZ
Medical Imaging: DICOM
eBook: DJVU
Digital Camera (RAW): DNG
Apache OpenOffice®: ODG, OTG
Raster: JPEG2000, JPEG, BMP, TIFF, GIF, PNG, APNG,TGA
Metafiles: EMF, WMF, EMZ, WMZ
Photoshop®: PSD
CorelDRAW®: CDR, CMX
Fixed Layout: PDF
Postscript: EPS
Google®: WebP

Supported Image Filters

  • BigRectangular
  • SmallRectangular
  • Median
  • GaussWiener
  • MotionWiener
  • GaussianBlur
  • Sharpen
  • BilateralSmoothing

Requirements

Building the API client library requires:

  1. Java 1.8+
  2. Maven

Prerequisites

To use Aspose.Imaging Cloud SDK for Java you need to register an account with Aspose Cloud and lookup/create Client ID and Client Secret at Cloud Dashboard. There is free quota available. For more details, see Aspose Cloud Pricing.

Installation

Install from Maven

Add Aspose Cloud repository to your application pom.xml

<profiles>
    <profile>
        <repositories>
            <repository>
                <id>AsposeJavaAPI</id>
                <name>Aspose Java API</name>
                <url>https://releases.aspose.cloud/java/repo/</url>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
                <releases>
                    <enabled>true</enabled>
                </releases>
            </repository>
        </repositories>
        <id>repositoryProfile</id>
        <activation>
            <activeByDefault>true</activeByDefault>
        </activation>
    </profile>
</profiles>

Install from source

To install the API client library to your local Maven repository, simply execute:

mvn clean install

To deploy it to a remote Maven repository instead, configure the settings of the repository and execute:

mvn clean deploy

Refer to the OSSRH Guide for more information.

Maven users

Add this dependency to your project’s POM:

<dependency>
    <groupId>com.aspose</groupId>
    <artifactId>aspose-imaging-cloud</artifactId>
    <version>22.4</version>
</dependency>

Others

At first generate the JAR by executing:

mvn clean package

Then manually install the following JARs:

  • target/aspose-imaging-cloud-22.4.jar
  • target/lib/*.jar

Convert JPG to PNG in Java

// Get your ClientId and ClientSecret from https://dashboard.aspose.cloud (free registration required).
ImagingApi api = new ImagingApi("MY_CLIENT_SECRET", "MY_CLIENT_ID");

ConvertImageRequest request = new ConvertImageRequest("sample.jpg", "png", "tempFolder", "My_Storage_Name");
byte[] response = api.convertImage(request);

Licensing

All Aspose.Imaging Cloud SDKs, helper scripts and templates are licensed under MIT License.

Authorization & Authentication

Authentication schemes defined for the API is as follows:

JWT

Recommendation

It’s recommended to create an instance of ApiClient per thread in a multithreaded environment to avoid any potential issues.

Product Page | Documentation | Live Demo | Swagger UI | Code Samples | Blog | Free Support | Free Trial

VersionRelease Date
23.5June 5, 2023
22.4April 15, 2022
21.12December 27, 2021
21.11November 30, 2021
21.6June 10, 2021
21.2February 18, 2021
20.12December 30, 2020
20.9September 29, 2020
20.8August 31, 2020
20.7July 30, 2020
20.6June 30, 2020
20.5May 30, 2020
1.0.0May 12, 2020
1.0.1May 12, 2020
20.4April 30, 2020
20.3March 27, 2020
20.2February 27, 2020
20.1January 31, 2020
19.12December 26, 2019
19.10October 31, 2019
19.9October 1, 2019
19.8August 29, 2019
19.7August 1, 2019
19.6June 20, 2019
19.4April 26, 2019
19.1January 31, 2019
18.12December 29, 2018
18.11November 26, 2018
18.9October 9, 2018
18.8September 5, 2018
18.7August 2, 2018
18.6July 23, 2018