npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@asposecloud/aspose-imaging-cloud

v23.5.0

Published

Aspose.Imaging Cloud Node.js SDK

Downloads

393

Readme

npm npm bundle size node-current npm type definitions GitHub license

Image Processing in Cloud via Node.js REST API SDK

Aspose.Imaging Cloud is a true REST API that enables you to perform a wide range of image processing operations including creation, manipulation and conversion in the cloud, with zero initial costs. Our Cloud SDKs are wrappers around REST API in various programming languages, allowing you to process images in language of your choice quickly and easily, gaining all benefits of strong types and IDE highlights.

This repository contains Aspose.Imaging Cloud Node.js SDK source code which is written in TypeScript. This SDK allows you to work with Aspose.Imaging Cloud REST APIs in your Node.js applications quickly and easily, with zero initial cost.

To use this SDK, you will need Client ID and Client Secret which can be looked up at Aspose Cloud Dashboard (free registration in Aspose Cloud is required for this).

The SDK also can be used as Aspose.Imaging Cloud JavaScript SDK.

  • Fetch or update properties of cloud-hosted images.
  • Scale, flip, crop, and export an image with a single API call.
  • Resize, crop, flip, convert, and export an image to other supported formats.
  • Update image parameters of JPEG2000 & WEBP images.
  • Access and multi-frame TIFF image and extract the desired frames from it.
  • Rotate, flip, crop, resize, or fetch properties of the selected TIFF frame.
  • Merge multiple TIFF images.

Read & Write Image Formats

BMP, GIF, JPEG, JPEG2000, PSD, TIFF, WEBP, PNG, WMF, EMF, SVG, TGA, APNG

Save Image As

PDF, DICOM

Read Image Formats

DJVU, DICOM, CDR, CMX, ODG, DNG, EPS, EMZ, WMZ, SVGZ

Enhancements in Version 20.12

  • Enhanced the EPS file format inheritance to support rotate, resize, flip, etc. operations as vector images support.
  • Improved image loading, conversion, and export features.
  • Added the JavaScript SDK.

Enhancements in Version 20.9

  • Resumed the support of Android SDK and updated reference to Aspose.Imaging and Aspose.PSD.

Enhancements in Version 20.10

  • Support for additional image formats in Object Detection.
  • Support to load and convert EPS files to PDF/A format.

Storage API support

Since version 19.4, SDK includes support of storage operations for better user experience and unification, so now there's no need to use 2 different SDKs!

It gives you an ability to:

  • 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

Detalied official documentation can be found at the following link.

Getting Started

  1. Sign Up. Before you begin, you need to sign up for an account on our Dashboard and retrieve your credentials.
  2. Minimum requirements. This SDK requires Node.js 6.x and higher.
  3. Install Aspose.Imaging Cloud Node.js SDK.

Please, add the following nmp package to your project.json as a dependency.

{
  "dependencies": {
    "@asposecloud/aspose-imaging-cloud": "^23.5.0"
  }
}

Import the dependencies to your code as follows.

import * as imaging from "@asposecloud/aspose-imaging-cloud";
  1. Using the SDK. The best way to become familiar with how to use the SDK is to read the Developer Guide. The Getting Started Guide will help you to become familiar with the common concepts.

Quick Examples

Please, look at Examples document for basic usage or use the Examples folder for more sophisticated scenarios.

Convert JPG to PNG in Node.Js

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

	const request = new ConvertImageRequest({ "sample.jpg", "png", "tempFolder", "My_Storage_Name" });

	imagingApi.convertImage(request).then((response) => {
		fs.writeFile("sample.png", response.body, (err) => {
			if (err) throw err;
		});
	});

Aspose Cloud-hosted service VS on-premise deployment (experimental feature)

Starting from v19.7, you can choose either to use Aspose Cloud-hosted image processing service (the standard way) or the Docker image from Docker Hub deployed on-premise to serve the requests. The details about key differences and deployment process will be described on the dedicated Docker Hub page as soon as it's released.

To succeed with your on-premise service usage by the SDK, you need to:

  1. Set the clientId and clientSecret parameters as null and use baseUrl parameter according to your on-premise deployment with additional API version and debug mode parameters.
const imagingApi: imaging.ImagingApi  = new imaging.ImagingApi(null, null, "yourServiceUrl");
  1. Set storage or storageName parameters for each request where they're present (mandatory!).

Licensing

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

Aspose.Imaging Cloud SDKs in Popular Languages

| .NET | Java | PHP | Python | Ruby | Node.js |Android| |---|---|---|---|---|---|--| | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub | GitHub|GitHub |GitHub | | NuGet | Maven | Composer | PIP | GEM | NPM |Maven|

Product Page | Documentation | API Reference | Code Samples | Blog | Free Support | Free Trial