Node.js Cloud SDK to work with image conversion, manipulation, properties and TIFF frames Using Powerful Aspose.Imaging Cloud APIs

Aspose.Imaging Cloud

Aspose.Imaging CloudAspose.Imaging Cloud’s platform independent image manipulation API is a true REST API that can be used with any language: .NET, Java, PHP, Ruby, Rails, Python, Node.js 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. Learn More What’s new in the latest release This is a major revamp release for Aspose.Imaging Cloud SDK for Node.js. It covers all the Aspose.Imaging Cloud APIs. This SDK provides a complete solution to work with cloud images in Node.js using powerful Aspose.Imaging Cloud APIs, so you can manipulate & convert images in the cloud seamlessly. Source Code Repository Complete source code of this release of Aspose.Imaging Cloud SDK for Node.js is freely available on your favorite GitHub and Codeplex repositories. Setup Aspose.Imaging Cloud SDK for Node.js is also available as a released package in the npm (package manager for javascript) . You can bypass GitHub source code repository and depend directly on the released package by installing from npm: Aspose.Imaging Cloud SDK for Node.js – npm installation

npm i asposeimagingcloud
Data In order to manipulate any files, you first need to upload them to the Aspose cloud storage or 3rd party cloud storage using Aspose.Storage Cloud SDK for Node.js. Quick SDK Tutorial

var fs = require('fs');
var assert = require('assert');
var StorageApi =require("asposestoragecloud")
var ImagingApi = require('asposeimagingcloud');

var AppSID = 'XXX'; //sepcify App SID
var AppKey = 'XXX'; //sepcify App Key
var config = {'appSid':AppSID,'apiKey':AppKey};
var data_path = '../data/';

try {
//Instantiate Aspose.Storage API SDK
var storageApi = new StorageApi(config);

//Instantiate Aspose.Imaging API SDK
var imagingApi = new ImagingApi(config);

//set input file name
var filename = "aspose";
var name =  filename + ".jpg";
var format = "png";
var storage = null;
var folder= null;

//upload file to aspose cloud storage
storageApi.PutCreate(name, null, null, file= data_path + name , function(responseMessage) {
	assert.equal(responseMessage.status, 'OK');
	//invoke Aspose.Imaging Cloud SDK API to convert image to other formats
	imagingApi.GetImageSaveAs(name, format, null, folder, storage, function(responseMessage) {
			assert.equal(responseMessage.status, 'OK');		
			//download converted image from api response
			var outfilename = filename + '.' + format;
			var writeStream = fs.createWriteStream('c:/temp/' + outfilename);
			writeStream.write(responseMessage.body);
			});
	});

}catch (e) {
  console.log("exception in example");
  console.log(e);
}
Aspose.Imaging Cloud API Documentation Aspose.Imaging Cloud Documentation 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 Node.js Examples Aspose.Imaging Cloud SDK for Node.js 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. Start a Free Trial Today Start a free trial today – all you need is to sign up with the Aspose Cloud service. Once you have signed up, you are ready to try the powerful file processing features offered by Aspose Cloud.