0.0.3 • Published 8 years ago

node-imagify-api v0.0.3

Weekly downloads
4
License
ISC
Repository
github
Last release
8 years ago

node-imagify-api

node js wrapper for imagify API

Install

npm install --save node-imagify-api

Usage

Simple upload call

var token ="YOUR_API_TOKEN_HERE";

var nodeImagifyAPI = require("node-imagify-api");

var options = {'ultra':true
				, 'resize': {'width':50}};

var apiCallback = function (result) {
	console.log("result :"+JSON.stringify(result));
}

nodeImagifyAPI.uploadImage(token,options,"test_image.jpg",apiCallback);

You can use any options from data parameters section in the imagify api documentation

Sample result

{
   "code":200,
   "success":true,
   "image":"http://storage.imagify.io/imagify/c7c95fc0-c943-11e5-afa4-fa163e144eda/test_image.jpg",
   "percent":92.9,
   "new_size":2037,
   "original_size":28686
}

Test

to be implemented

0.0.3

8 years ago

0.0.2

8 years ago

0.0.1

8 years ago