Skip to content

hemgui/node-imagify-api

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

node js wrapper for imagify API (https://imagify.io/docs/api/)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published