Manipulate Images Using the Aspose Cloud Node.js SDK

Share on FacebookShare on Google+Tweet about this on TwitterShare on LinkedIn

Introduction to NodeJS

Node.js LogoNode.js is a JavaScript platform for building fast, scalable network applications. Node.js follows an event-driven, non-blocking I/O model which makes it efficient and lightweight. An ideal platform for data-intensive real-time applications. Node.js is server-side solution for JavaScript, and in particular for receiving and responding to HTTP requests. Read more about Node.js.

Aspose Cloud

Aspose LogoAspose Cloud is a cloud-based document generation, conversion and automation platform for developers. Before Aspose Cloud APIs document processing and manipulation tasks were not so easy. Aspose Cloud APIs give developers full control over documents and file formats. Each API has been developed to offer you a wide range of features for file processing in cloud. Aspose Cloud REST APIs are platform independent and can be utilized across any platform such as Amazon, Salesforce etc. without any installation. Being language independent makes it a suitable choice for the developers having expertise in any programming language. We also provide SDKs in different programming languages such as .NET, Java, PHP, Ruby, Node.js and Python.

Aspose.Imaging Cloud

Aspose.Imaging Cloud lets you use a REST API to inspect, convert, and transform images on the cloud. It currently supports the most popular image formats such as PSD, PNG, GIF, BMP, TIFF, JPEG and their interconversion. Aspose.Imaging Cloud also provides a rich set of features to manipulate the images on-the-fly with cloud based image transformations. You can resize, crop and/or rotate the images in various ways by just creating a request that includes the correct transformation instructions. The most demanding imaging routines such as 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.

Code Snippets

Sample Code Aspose.Imaging  – Get Image Properties

require 'asposecloud'
var AppSID = '****';
var AppKey = '****';

var BaseProductUri = 'http://api.aspose.com/v1.1/';


var config = {'appSID':AppSID,'appKey':AppKey,'baseURI':BaseProductUri};

var aspose = new AsposeCloud(config);

var stg = aspose.Storage();
stg.uploadFile('test_image.jpg');

var image = aspose.Imaging();
image.getProperties('test_image.jpg', function(data){ console.log(data); });

Sample Code Aspose.Imaging  – Update JPG Image Properties

require 'asposecloud'
var AppSID = '****';
var AppKey = '****';

var BaseProductUri = 'http://api.aspose.com/v1.1/';


var config = {'appSID':AppSID,'appKey':AppKey,'baseURI':BaseProductUri};

var aspose = new AsposeCloud(config);

var stg = aspose.Storage();
stg.uploadFile('test_image.jpg');

var image = aspose.Imaging();
image.updateJPGProperties('test_image.jpg',45,'baseline','/',function(data){ fs.writeFile('output/test_image_updated.jpg',data); })

Download and Install

Start a Free Trial Today

Start a free trial today – all you need is to sign up with Aspose Cloud service. Once you have signed up, you are ready to try powerful file processing features offered by Aspose Cloud.


To keep up with our news, you can follow us on Twitter or follow our Facebook page.