Skip to content
This repository has been archived by the owner on May 4, 2020. It is now read-only.
/ x-image-processing Public archive

a simple image upload and processing module in node.js

Notifications You must be signed in to change notification settings

netai/x-image-processing

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

x-image-processing

a simple image upload and processing module in node.js

and this image processing module under development but all time it usable

So hope this library help someone like me.

Any ideas are appreciated.

##Features

  • image crop
  • image resize
  • image upload

##Dependencies

By default:

##Installation

npm install x-image-processing --save

##How to use

this module use is so easy just require module and call function

	require('x-image-processing');
		xip.upload(<raw file data>,<upload path>,<file name>);
		xip.resize(<upload path>,<width>,<height>);
		xip.crop(<upload path>,<width>,<height>,<X>,<Y>);

###Example

Here i have give you a simple i think it will help

  var xip=require('x-image-processing');
  //raw file data(product_pic is file field name)
		var product_image=req.files.product_pic;
		xip.upload(product_image,'./public/images/product/',dt_join);
		xip.resize('./public/images/product/thumb/',100,100);
		xip.crop('./public/images/product/crop/',100,100,20,20);

About

a simple image upload and processing module in node.js

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published