From d8bdbcd3d637e3a0110a66c371ef151d0671658e Mon Sep 17 00:00:00 2001 From: Chinmay Pandhare Date: Sun, 12 Mar 2017 10:01:47 +0530 Subject: [PATCH] lowercase parameters --- src/modules/Crop.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/modules/Crop.js b/src/modules/Crop.js index 9636da12..bde46030 100644 --- a/src/modules/Crop.js +++ b/src/modules/Crop.js @@ -14,10 +14,10 @@ getPixels(image.src,function(err,pixels){ var newdata = []; - var ox = options.cropX || 0; //Where to begin the crop on X axis - var oy = options.cropY || 0; //Where to begin the crop on Y axis - var w = options.cropL || Math.floor(0.5*pixels.shape[0]); //Length of crop - var h = options.cropH || Math.floor(0.5*pixels.shape[1]); //Height of crop + var ox = options.x || 0; //Where to begin the crop on X axis + var oy = options.y || 0; //Where to begin the crop on Y axis + var w = options.l || Math.floor(0.5*pixels.shape[0]); //Length of crop + var h = options.h || Math.floor(0.5*pixels.shape[1]); //Height of crop var iw = pixels.shape[0]; //Width of Original Image newarray = new Uint8Array(4*w*h); for (var n = oy; n < oy + h; n++) {