Skip to content

Latest commit

 

History

History
21 lines (15 loc) · 426 Bytes

resize.md

File metadata and controls

21 lines (15 loc) · 426 Bytes

Rezize an image using the given new width and height.

resize(int width, int height[, boolean interpolation])
  • width new width.
  • height new height.
  • interpolation set the interpolation method.
Example:
var imageLib = require('./imageLib.js');

imageLib('./images/simple.jpg').jpegToData(function() {
	
	this.resize(400, 400, true);
	this.toJpeg('./images/simpleResize.jpg');
});