node-imagify-api

0.0.3 • Public • Published

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

Readme

Keywords

Package Sidebar

Install

npm i node-imagify-api

Weekly Downloads

0

Version

0.0.3

License

ISC

Last publish

Collaborators

  • hemgui